/* ============================================
   Desktop Optimizations CSS
   فقط روی نمایشگرهای >= 768px اعمال می‌شود
   موبایل کاملاً دست‌نخورده باقی می‌ماند
   ============================================ */

@media (min-width: 768px) {

  /* 1) جلوگیری از اسکرول افقی و تنظیم عرض کلی دسکتاپ */
  html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }

  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl {
    max-width: 1360px !important;
  }

  /* 2) منو: نگذاریم کل عرض صفحه را بگیرد و وسط‌چین شود */
  .menubar-area {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    left: 0 !important;
    right: 0 !important;
    border-radius: 16px 16px 0 0;
  }

  .menubar-area.footer-fixed {
    width: 480px !important;
    left: 50% !important;
    right: auto !important;
    /* رفع کشیدگی به راست به دلیل استایل والد */
    transform: translateX(-50%) !important;
    border-radius: 30px !important;
    /* حفظ انحنای استایل ۵ */
    bottom: 12px !important;
    margin: 0 auto !important;
  }

  /* 3) دسته‌بندی‌ها: کل عرض را بگیرند و از راست نیفتند */
  .categorie-swiper {
    width: 100%;
  }

  .categorie-swiper .swiper-wrapper {
    justify-content: center;
  }

  /* اسلایدر صفحه اصلی روی دسکتاپ متناسب با نسبت تصویر بنرها (1376x768) باشد تا عکس‌ها کراپ نشوند */
  .add-banner {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1376 / 768 !important;
    background-size: cover !important;
    background-position: center !important;
  }

  /* Flush header & top gap elimination + edge-to-edge container breakout */
  .page-content,
  #content,
  .desktop-home-layout {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  #content:has(.desktop-home-layout),
  .page-content:has(.desktop-home-layout),
  .content-inner:has(.desktop-home-layout),
  body[data-active-page="home"] #content,
  body[data-active-page="home"] .page-content,
  body[data-active-page="home"] .content-inner {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Desktop Widescreen Full-Width Hero Slider (Flush to Header, Edge to Edge, Sharp Corners) */
  .hero-fullwidth-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }

  .carousel-inner.style-full-hero,
  .carousel-inner.style-full-hero .carousel-item,
  .carousel-inner.style-full-hero .hero-slide-item {
    height: 500px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .carousel-inner.style-full-hero .hero-buttons-animated {
    margin-top: 80px !important;
  }

  .hero-backdrop-overlay {
    display: none !important;
    background: transparent !important;
  }

  /* Desktop Floating Quick Consult Button (FAB) */
  .floating-quick-consult-desktop {
    position: fixed !important;
    bottom: 32px !important;
    left: 32px !important;
    z-index: 9999 !important;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 14px 26px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4) !important;
    border: 2px solid #ffffff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  }

  .floating-quick-consult-desktop:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 16px 36px rgba(16, 185, 129, 0.55) !important;
    color: #ffffff !important;
  }

  .floating-quick-consult-desktop .pulse-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 14px;
    height: 14px;
    background-color: #f59e0b;
    border: 2px solid #ffffff;
    border-radius: 50%;
    animation: fabPulse 1.8s infinite;
  }

  @keyframes fabPulse {
    0% {
      box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    70% {
      box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
  }

  /* انیمیشن ورود عنوان و زیرعنوان اسلاید دسکتاپ */
  .carousel-item.active .hero-badge-animated {
    animation: heroSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .carousel-item.active .hero-title-animated {
    animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
  }
  .carousel-item.active .hero-subtitle-animated {
    animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
  }
  .carousel-item.active .hero-buttons-animated {
    animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
  }

  @keyframes heroSlideUp {
    0% {
      opacity: 0;
      transform: translateY(35px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .cat-card-desktop {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  }

  .cat-card-desktop:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.12) !important;
    border-color: #2563eb !important;
    background: #ffffff !important;
  }

  .cat-card-desktop .cat-icon-circle {
    transition: all 0.3s ease !important;
  }

  .cat-card-desktop:hover .cat-icon-circle {
    background: #2563eb !important;
    color: #ffffff !important;
    transform: scale(1.1) rotate(-4deg);
  }

  /* Desktop Consultant Cards Overrides */
  .consultant-card {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 320px !important;
    padding: 24px 20px !important;
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative !important;
  }

  .consultant-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12) !important;
    border-color: #2563eb !important;
  }

  .consultant-card .con-avatar-wrap {
    width: 86px !important;
    height: 86px !important;
    margin: 0 auto 12px !important;
    position: relative !important;
  }

  .consultant-card .con-avatar {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  }

  .consultant-card .con-name {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 4px !important;
    text-align: center !important;
  }

  .consultant-card .con-specialty {
    font-size: 12px !important;
    color: #64748b !important;
    text-align: center !important;
    margin-bottom: 10px !important;
  }

  .consultant-card .con-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding-top: 14px !important;
    border-top: 1px solid #f1f5f9 !important;
    margin-top: 12px !important;
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
  }

  .test-card {
    transition: all 0.3s ease !important;
  }

  .test-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08) !important;
    border-color: #2563eb !important;
    background: #ffffff !important;
  }

  /* Stat Box Pro Hover Animation */
  .stat-box-pro {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .stat-box-pro:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08) !important;
  }

  /* Feature Card Item Hover Animation */
  .feature-card-item {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .feature-card-item:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08) !important;
    background: #ffffff !important;
    border-color: #2563eb !important;
  }

  /* فلش‌های چپ و راست و دایره‌های آدرس‌دهی هیرو اسلایدر */
  .desktop-hero-swiper .swiper-button-next,
  .desktop-hero-swiper .swiper-button-prev {
    color: #fff !important;
    background: rgba(37, 99, 235, 0.5) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
  }

  .desktop-hero-swiper .swiper-button-next:hover,
  .desktop-hero-swiper .swiper-button-prev:hover {
    background: rgba(37, 99, 235, 0.85) !important;
    transform: scale(1.05);
  }

  .desktop-hero-swiper .swiper-button-next::after,
  .desktop-hero-swiper .swiper-button-prev::after {
    font-size: 16px !important;
    font-weight: bold !important;
  }

  .desktop-hero-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
  }

  .desktop-hero-swiper .swiper-pagination-bullet-active {
    background: #2563EB !important;
    width: 24px !important;
    border-radius: 4px !important;
  }

  /* 4) مودال محصول و جزئیات سفارش: شناور در وسط صفحه به جای گوشه پایین */
  #productModal .modal-dialog.modal-dialog-bottom,
  #orderDetailModal .modal-dialog.modal-dialog-bottom {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
    max-width: 680px !important;
    margin: 1.75rem auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: calc(100% - 3.5rem) !important;
  }

  #productModal .modal-dialog.modal-dialog-bottom .modal-content,
  #orderDetailModal .modal-dialog.modal-dialog-bottom .modal-content {
    border-radius: 20px !important;
    /* انحنای کامل در تمام گوشه‌ها */
    height: auto !important;
    max-height: 90vh !important;
    overflow: hidden !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2) !important;
  }

  #productModal .modal-body,
  #orderDetailModal .modal-body {
    overflow-y: auto !important;
    padding: 20px !important;
  }

  /* تصویر هدر داخل مودال */
  #productModal img.bnr-img {
    max-height: 320px !important;
    object-fit: cover !important;
    width: 100% !important;
    border-radius: 12px !important;
  }

  /* دکمه «اضافه به سبد» مودال محصول که روی موبایل فیکس است، در دسکتاپ داخل کادر مودال قرار گیرد */
  #productModal .footer.fixed {
    position: relative !important;
    width: 100% !important;
    left: auto !important;
    bottom: auto !important;
    background-color: var(--bg-white) !important;
    z-index: auto !important;
    padding: 15px 20px !important;
    border-top: 1px solid var(--border-color) !important;
    box-shadow: none !important;
  }

  /* دکمه بستن مودال دکمه به صورت فیکس شناور */
  #productModal .btn-close.fixed {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    z-index: 10 !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    padding: 8px !important;
    border-radius: 50% !important;
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
  }

}

/* روی نمایشگرهای خیلی بزرگ، مودال‌ها کمی بزرگ‌تر */
@media (min-width: 1200px) {

  #productModal .modal-dialog.modal-dialog-bottom,
  #orderDetailModal .modal-dialog.modal-dialog-bottom {
    max-width: 780px !important;
  }
}

/* ==========================================================================
   DentoBank Premium Desktop Layout & Visual Refinements (min-width: 768px)
   ========================================================================== */
@media (min-width: 768px) {

  /* ۱) استایل و هم‌ترازی هدر در دسکتاپ */
  .header-desktop {
    background-color: #2563EB !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    position: sticky !important;
    top: 0;
    z-index: 1000;
  }

  .header-desktop .container {
    max-width: 1360px !important;
    margin: 0 auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .header-desktop .desktop-search-container input::placeholder {
    color: #94a3b8 !important;
  }

  .header-desktop .desktop-search-container input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25) !important;
    outline: none !important;
  }

  /* ۲) ناوبری دسکتاپ در هدر */
  .desktop-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease-in-out !important;
    padding: 8px 16px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    display: inline-block !important;
  }

  .desktop-nav .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-1px);
  }

  .desktop-nav .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.25) !important;
    font-weight: 700 !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.15) !important;
  }

  /* سبد خرید و نشانگرهای آن */
  .cart-badge-desktop {
    background: linear-gradient(135deg, #FF6B35 0%, #FF3B30 100%) !important;
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.35) !important;
    border: 1.5px solid #fff !important;
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    padding: 1.5px 0 0 0 !important; /* رفع رفتن عدد به بالای دایره (آفست فونت ایران‌سنس) */
    line-height: 1 !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    color: #fff !important;
  }

  /* مخفی کردن اصولی در صورت صفر بودن یا هیدن شدن */
  .cart-badge-desktop[style*="display: none"] {
    display: none !important;
  }

  /* اورراید کردن استایل‌های موبایل دکمه نوتیفیکیشن دسکتاپ */
  .header-desktop .notify-cart {
    width: auto !important;
    height: auto !important;
    background-color: transparent !important;
    display: inline-flex !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.95 !important;
    transition: opacity 0.2s ease-in-out !important;
  }
  
  .header-desktop .notify-cart:hover {
    opacity: 1 !important;
  }

  .header-desktop .notify-cart span#notification-badge-desktop {
    flex: none !important;
    display: flex !important;
    width: 18px !important;
    height: 18px !important;
    background: linear-gradient(135deg, #FF6B35 0%, #FF3B30 100%) !important;
    color: #fff !important;
    border-radius: 50% !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1.5px solid #fff !important;
    top: -2px !important; /* موقعیت‌یابی بهتر روی دایره نوتیف */
    right: -2px !important; /* موقعیت‌یابی بهتر روی دایره نوتیف */
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.35) !important;
    line-height: 1 !important;
    padding: 1.5px 0 0 0 !important; /* رفع رفتن عدد به بالای دایره */
  }

  /* مخفی کردن اصولی نوتیفیکیشن دسکتاپ در صورت صفر بودن */
  .header-desktop .notify-cart span#notification-badge-desktop[style*="display: none"] {
    display: none !important;
  }

  .header-desktop .notify-cart .badge-icon-wrapper {
    width: 38px !important;
    height: 38px !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    transition: background-color 0.2s ease-in-out !important;
  }

  .header-desktop .notify-cart:hover .badge-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.25) !important;
  }

  /* ۳) مخفی کردن نوار ابزار پایینی در دسکتاپ و اصلاح فضای بدنه */
  .menubar-area,
  .menubar-area.style-5,
  .menubar-area.footer-fixed {
    display: none !important;
  }

  .page-content {
    padding-bottom: 40px !important;
    background-color: #f8fafc !important;
    /* پس‌زمینه خاکستری ملایم برای تفکیک بهتر کارت‌ها */
  }

  /* ۴) محدود کردن عرض و وسط‌چین کردن المان‌های تکی کشیده شده */
  .search-box {
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
  }

  .search-box .input-group {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
  }

  .payment-service.card {
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
  }

  .active-orders-section {
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* ۵) افکت‌های هاور و بهبود بصری کارت‌های خدمات (Products) */
  .card-item.style-1 {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02) !important;
  }

  .card-item.style-1:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.12) !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
  }

  .card-item.style-1 .dz-media img {
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  }

  .card-item.style-1:hover .dz-media img {
    transform: scale(1.06) !important;
  }

  .card-item.style-1 .add-btn {
    border-radius: 10px !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
  }

  .card-item.style-1 .add-btn:hover {
    background-color: var(--primary) !important;
    color: #ffffff !important;
  }

  /* ۶) افکت‌های هاور و بهبود کارت‌های کلینیک‌ها (Stores) */
  .store-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02) !important;
  }

  .store-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
  }

  .store-card .card-media img {
    transition: transform 0.5s ease !important;
    aspect-ratio: 16 / 10 !important;
    object-fit: cover !important;
    width: 100% !important;
  }

  .store-card:hover .card-media img {
    transform: scale(1.05) !important;
  }

  .store-card .card-info {
    padding: 18px !important;
  }

  .store-card .header-info .title a {
    color: #0F172A !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    transition: color 0.2s;
  }

  /* Consultants Page Desktop 3-Column Grid Overrides */
  .consultants-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
  }

  .consultant-list-card {
    width: 100% !important;
    height: 100% !important;
    margin-bottom: 0 !important;
    padding: 20px !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
  }

  .consultant-list-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08) !important;
    border-color: #2563eb !important;
  }

  /* Consultation Service Cards & Category Chips Desktop Styles */
  .consultation-service-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .consultation-service-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.1) !important;
    border-color: #2563eb !important;
    background: #ffffff !important;
  }

  .category-chip-btn {
    background: #f8fafc !important;
    color: #475569 !important;
    border-color: #e2e8f0 !important;
  }
  .category-chip-btn.active,
  .category-chip-btn:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
  }

  .store-card-body .operating-hours .hour-item {
    font-size: 11px !important;
    color: #64748B !important;
    margin-bottom: 5px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px;
  }

  .store-card-body .operating-hours .hour-item .hour-icon {
    font-size: 12px !important;
    color: #2563EB !important;
  }

  .store-card-body .operating-hours .delivery-info {
    color: #059669 !important;
    font-weight: 600 !important;
    margin-top: 6px !important;
  }

  /* ==========================================================================
     DentoBank New Desktop Grid & Premium Footer Styles
     ========================================================================== */
  
  /* Category cards hover style */
  .category-desktop-link {
    text-decoration: none !important;
  }
  .category-desktop-card {
    border: 1px solid #e2e8f0 !important;
  }
  .category-desktop-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.08) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
  }

  /* Product grid style customization */
  .products-desktop-grid {
    margin-bottom: 25px;
  }

  /* Premium Dark Footer styling on desktop */
  .footer-area {
    background-color: #0b1a19 !important; /* Extremely premium very dark teal/slate */
    border-top: 4px solid #2563EB !important; /* Brand Turquoise accent top line */
    color: #cbd5e1 !important;
    direction: rtl !important;
    width: 100% !important;
    padding-top: 3.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  
  .footer-brand {
    color: #ffffff !important;
    font-size: 20px !important;
    margin-bottom: 15px !important;
  }
  
  .footer-desc {
    color: #94a3b8 !important;
    line-height: 1.8 !important;
    font-size: 13px !important;
  }
  
  .footer-title {
    color: #ffffff !important;
    font-size: 15px !important;
    border-bottom: 2px solid rgba(37, 99, 235, 0.2) !important;
    padding-bottom: 8px !important;
    display: inline-block !important;
    margin-bottom: 15px !important;
  }

  .footer-links-list,
  .footer-contact-list {
    padding-right: 0 !important;
    list-style: none !important;
  }
  
  .footer-links-list a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out !important;
    display: inline-block !important;
    padding: 2px 0 !important;
  }
  
  .footer-links-list a:hover {
    color: #2563EB !important;
    transform: translateX(-4px) !important;
  }
  
  .footer-contact-list li {
    color: #94a3b8 !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  
  .footer-icon {
    color: #2563EB !important;
    font-size: 14px !important;
  }
  
  .footer-certificates-wrapper {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    backdrop-filter: blur(5px) !important;
  }
  
  .footer-cert-img {
    height: 65px !important;
    object-fit: contain !important;
    filter: grayscale(1) brightness(0.9) !important;
    transition: all 0.3s ease-in-out !important;
    background: white;
    border-radius: 8px;
    padding: 4px;
  }
  
  .footer-cert-img:hover {
    filter: none !important;
    transform: scale(1.05) !important;
  }
  
  .footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #64748b !important;
    font-size: 12px !important;
    margin-top: 2.5rem !important;
  }

  /* Desktop Hero Carousel styles */
  #desktopHeroCarousel:hover .carousel-control-prev,
  #desktopHeroCarousel:hover .carousel-control-next {
    opacity: 0.95 !important;
  }
  #desktopHeroCarousel .carousel-indicators button.active {
    background-color: #2563EB !important;
    width: 24px !important;
    border-radius: 5px !important;
    opacity: 1 !important;
  }

  /* تبدیل پنل سرچ به مودال در حالت دسکتاپ */
  #offcanvasRight.offcanvas {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.95) !important;
    width: 620px !important;
    height: auto !important;
    max-height: 85vh !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18) !important;
    border: none !important;
    right: auto !important;
    bottom: auto !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, visibility 0.3s ease !important;
    opacity: 0;
  }
  
  #offcanvasRight.offcanvas.show {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1 !important;
  }

  /* کادرهای رنگی تمام صفحه اختصاصی دسکتاپ بدون بوردر ردیوس با پس‌زمینه فیروزه‌ای/نعنایی ملایم و فوق‌العاده مدرن */
  .food-gradiant-desktop {
    background: linear-gradient(135deg, #f0fbfb 0%, #e5f5f5 100%) !important;
    border-radius: 0 !important;
    border-top: 1px solid #d2eded !important;
    border-bottom: 1px solid #d2eded !important;
    padding: 25px 0 !important;
  }
  
  .stores-gradiant-desktop {
    background: linear-gradient(135deg, #f3faf9 0%, #e6f3f2 100%) !important;
    border-radius: 0 !important;
    border-top: 1px solid #d0e7e5 !important;
    border-bottom: 1px solid #d0e7e5 !important;
    padding: 25px 0 !important;
  }

  /* بازنشانی المان‌های تمام‌عرض به عرض والد در حالت دسکتاپ فقط برای صفحات محدود شده (مانند لاگین و آدرس‌ها) */
  #content[data-active-page="register"] .make-full-width,
  #content[data-active-page="add_address"] .make-full-width {
    width: 100% !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
  }

  /* بهینه‌سازی عرض صفحات خاص روی دسکتاپ برای جلوگیری از کشیدگی و عریض شدن بیش از حد محتوا */
  #content[data-active-page="orders"],
  #content[data-active-page="profile"],
  #content[data-active-page="cart"],
  #content[data-active-page="stores"],
  #content[data-active-page="notifications"],
  #content[data-active-page="edit-profile"],
  #content[data-active-page="add_address"] {
    max-width: 680px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* طراحی پرمیوم و مدرن کارت لاگین/ثبت‌نام همیار من در دسکتاپ */
  #content[data-active-page="register"] {
    max-width: 440px !important; /* عرض استاندارد کارت لاگین مدرن */
    margin: 60px auto !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.08) !important;
    border: 1px solid rgba(37, 99, 235, 0.15) !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  #content[data-active-page="register"] .banner-wrapper {
    background-color: #2563EB !important;
    height: 110px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  #content[data-active-page="register"] .banner-wrapper img {
    max-height: 44px !important;
    object-fit: contain !important;
  }

  #content[data-active-page="register"] .account-box {
    padding: 35px 30px 45px 30px !important;
    background: #ffffff !important;
  }

  #content[data-active-page="register"] .account-box .container {
    padding: 0 !important;
    max-width: 100% !important;
  }

  #content[data-active-page="register"] .account-area {
    padding: 0 !important;
  }

  #content[data-active-page="register"] h2.title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 10px !important;
    text-align: center !important;
  }

  #content[data-active-page="register"] p.text-soft {
    font-size: 13px !important;
    color: #64748b !important;
    text-align: center !important;
    margin-bottom: 25px !important;
    line-height: 1.6 !important;
  }

  #content[data-active-page="register"] .form-item {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background-color: #f8fafc !important;
    transition: all 0.25s ease !important;
    overflow: hidden !important;
    height: 50px !important;
    margin-top: 10px !important;
  }

  #content[data-active-page="register"] .form-item:focus-within {
    border-color: #2563EB !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.12) !important;
  }

  #content[data-active-page="register"] .form-control {
    border: 0 !important;
    background: transparent !important;
    height: 100% !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    text-align: center !important;
    letter-spacing: 2px !important;
  }

  #content[data-active-page="register"] .form-control::placeholder {
    color: #94a3b8 !important;
    letter-spacing: 0px !important;
  }

  #content[data-active-page="register"] .form-control:focus {
    box-shadow: none !important;
    outline: none !important;
  }

  #content[data-active-page="register"] button[type="submit"] {
    background-color: #2563EB !important;
    border: none !important;
    border-radius: 12px !important;
    height: 50px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    width: 100% !important;
    margin-top: 22px !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
    transition: all 0.2s ease-in-out !important;
  }

  #content[data-active-page="register"] button[type="submit"]:hover {
    background-color: #1D4ED8 !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3) !important;
  }

  #content[data-active-page="register"] button[type="submit"]:active {
    transform: translateY(0px) !important;
  }

  #content[data-active-page="register"] #btnEditPhone {
    display: inline-block !important;
    margin-top: 12px !important;
    font-size: 13px !important;
    color: #2563EB !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.2s !important;
  }

  #content[data-active-page="register"] #btnEditPhone:hover {
    color: #099996 !important;
  }

  #content[data-active-page="register"] .text-danger {
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-top: 10px !important;
    text-align: right !important;
  }

  /* افکت مارکی (حرکت پیوسته، نرم و ممتد خطی) برای اسلایدر کلینیک‌ها */
  .stores-marquee-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
  }

  /* تنظیم اسکرول‌بار ملایم، نازک و محو (بدون رنگ آبی زننده) */
  html {
    overflow-y: auto !important;
    scrollbar-width: thin !important; /* فایرفاکس */
    scrollbar-color: #cbd5e1 #f8fafc !important; /* فایرفاکس */
  }

  /* لغو پدینگ‌ها و سرریزهای اعمالی بوت‌استرپ برای جلوگیری از نمایش اسکرول‌بار دوم و رفع پرش چپ و راست */
  body.modal-open,
  html.modal-open,
  .modal {
    padding-right: 0 !important;
    padding-left: 0 !important;
    overflow: hidden !important; /* جلوگیری از ایجاد اسکرول‌بار موازی روی ظرف اصلی مودال در دسکتاپ */
  }

  ::-webkit-scrollbar {
    display: block !important;
    width: 8px !important;
    height: 8px !important;
  }

  ::-webkit-scrollbar-track {
    background: #f8fafc !important;
  }

  ::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 6px !important;
    border: 2px solid #f8fafc !important;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
  }

}

/* ==========================================================
   Mobile-Only Custom Tweaks (max-width: 767.98px)
   ========================================================== */
@media (max-width: 767.98px) {
  /* مخفی کردن هدر استیکی موبایل در صفحه لاگین/ثبت‌نام */
  body[data-active-page="register"] header.header.d-md-none {
    display: none !important;
  }

  /* حذف پدینگ‌ها و مارجین‌های اضافی جهت تمام‌عرض شدن بنر لاگین در موبایل */
  body[data-active-page="register"] .page-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
  }

  body[data-active-page="register"] .content-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body[data-active-page="register"] #content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  body[data-active-page="register"] .banner-wrapper.make-full-width {
    width: 100% !important;
    margin: 0 !important;
    left: auto !important;
    right: auto !important;
    border-radius: 0 !important;
  }

  body[data-active-page="register"] .account-box {
    padding: 30px 20px !important;
  }

  /* تنظیم پس‌زمینه سفید برای تمام کانتینرها و شبه‌المان‌های صفحه اینترو در دسکتاپ جهت یکپارچگی کامل با پس‌زمینه عکس‌ها */
  body[data-active-page="intro"],
  body[data-active-page="intro"] .page-wraper,
  body[data-active-page="intro"] .page-content,
  body[data-active-page="intro"] .content-inner,
  body[data-active-page="intro"] #content,
  body[data-active-page="intro"] .welcome-area,
  body[data-active-page="intro"] .join-area,
  body[data-active-page="intro"] .swiper,
  body[data-active-page="intro"] .swiper-slide,
  body[data-active-page="intro"] .slide-info,
  body:has(.welcome-area),
  body:has(.welcome-area) .page-wraper,
  body:has(.welcome-area) .page-content,
  body:has(.welcome-area) .content-inner,
  body:has(.welcome-area) #content,
  body:has(.welcome-area) .welcome-area,
  body:has(.welcome-area) .join-area,
  body:has(.welcome-area) .swiper,
  body:has(.welcome-area) .swiper-slide,
  body:has(.welcome-area) .slide-info {
    background-color: #ffffff !important;
    background-image: none !important;
  }

  /* حذف تصاویر و خطوط طراح‌دار تزیینی پس‌زمینه که فاقد رنگ سفید هستند */
  body[data-active-page="intro"] .welcome-area .join-area:after,
  body:has(.welcome-area) .welcome-area .join-area:after,
  body[data-active-page="intro"] .welcome-area:before,
  body[data-active-page="intro"] .welcome-area:after,
  body:has(.welcome-area) .welcome-area:before,
  body:has(.welcome-area) .welcome-area:after {
    display: none !important;
    background: none !important;
    background-image: none !important;
  }

  /* بزرگتر کردن تصاویر و متون صفحه اینترو در دسکتاپ */
  body[data-active-page="intro"] .welcome-area .dz-media {
    margin-top: 40px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
  }

  body[data-active-page="intro"] .welcome-area .dz-media img {
    width: 100% !important;
    max-width: 380px !important; /* ابعاد بزرگتر تصویر روی دسکتاپ */
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
  }

  body[data-active-page="intro"] .welcome-area .started h3.title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-top: 15px !important;
    text-align: center !important;
  }

  body[data-active-page="intro"] .welcome-area .started p {
    font-size: 15px !important;
    color: #475569 !important;
    max-width: 550px !important;
    margin: 0 auto !important;
    line-height: 1.7 !important;
    text-align: center !important;
  }
}

/* ==========================================================
   تنظیمات هماهنگ نقاط اسلاید و دکمه رد کردن در هر دو حالت موبایل و دسکتاپ
   ========================================================== */
body[data-active-page="intro"] .welcome-area {
  position: relative !important;
  height: 100vh !important;
  overflow: hidden !important;
}

body[data-active-page="intro"] .welcome-area .swiper-btn {
  position: absolute !important;
  bottom: 180px !important; /* بالا آوردن نقاط برای جلوگیری از افتادن زیر منو */
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  z-index: 10 !important;
}

body[data-active-page="intro"] .welcome-area .bottom-btn {
  position: absolute !important;
  bottom: 130px !important; /* بالا آوردن دکمه رد کردن */
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  z-index: 10 !important;
  text-align: center !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
}

body[data-active-page="intro"] .welcome-area .bottom-btn a {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #2563EB !important;
  text-decoration: none !important;
}

/* ==========================================================================
   Consultant / Vendor Widescreen Desktop UI/UX Optimizations (Desktop ONLY)
   ========================================================================== */
@media (min-width: 768px) {
  .con-profile-header {
    background: #ffffff !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
    margin-bottom: 28px !important;
  }

  .con-profile-banner {
    height: 260px !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .con-profile-top-new {
    padding: 0 30px 24px !important;
  }

  .con-profile-avatar-wrap {
    width: 130px !important;
    height: 130px !important;
    margin-top: -65px !important;
  }

  .con-profile-avatar-wrap img {
    border-width: 5px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
  }

  .con-online-dot-lg {
    bottom: 6px !important;
    left: 6px !important;
    width: 22px !important;
    height: 22px !important;
    background: #22c55e !important;
    border: 3.5px solid #ffffff !important;
  }

  .con-profile-name {
    font-size: 23px !important;
    margin-top: 14px !important;
    font-weight: 800 !important;
  }

  .con-profile-specialty {
    font-size: 15px !important;
    color: #2563EB !important;
  }

  /* 4 Consultation method badges in Desktop */
  .con-profile-methods-wrap {
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 16px !important;
    margin-bottom: 24px !important;
  }

  .con-profile-methods-wrap .profile-tag {
    font-size: 13.5px !important;
    padding: 8px 20px !important;
    gap: 8px !important;
    border-radius: 30px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.2s ease !important;
  }

  .con-profile-methods-wrap .profile-tag i {
    font-size: 14px !important;
  }

  .con-profile-methods-wrap .profile-tag:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06) !important;
  }

  /* Consultant Biography Box in Desktop with 24px Top Spacing */
  .con-profile-desc-wrapper {
    max-width: 860px !important;
    margin: 24px auto 12px !important; /* فاصله بیشتر از بالا (24px) */
    padding: 20px 28px !important;
    border-radius: 16px !important;
    background: #f8fafc !important;
    border: 1px dashed #cbd5e1 !important;
    text-align: right !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
  }

  .con-profile-desc-wrapper p {
    font-size: 14.5px !important;
    line-height: 1.95 !important;
    color: #334155 !important;
    text-align: right !important;
  }

  .con-profile-desc-wrapper i {
    font-size: 16px !important;
    opacity: 0.7 !important;
  }

  /* بهینه‌سازی دکمه ثبت نظر مشاور در دسکتاپ */
  .review-box a.add-btn.shadow-lg,
  a.add-btn[data-bs-target="#reviewSubmitModal"] {
    display: none !important;
  }

  .btn-submit-review-desktop {
    padding: 10px 26px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
    color: #ffffff !important;
    border: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
  }

  .btn-submit-review-desktop:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45) !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  }
}

/* مخفی کردن منوی ناوبری پایینی در صفحه اینترو */
body[data-active-page="intro"] .menubar-area {
  display: none !important;
}