

/* ------------------------    هدر سایت   -------------------------*/
/* تنظیمات پایه و متغیرهای طراحی */
:root {
  --primary-color: #6d5dfc;
  --primary-dark: #5141e5;
  --secondary-color: #27d3ad;

  --text-color: #172033;
  --muted-text: #697386;

  --header-background: rgba(255, 255, 255, 0.82);
  --page-background: #f5f7ff;
  --border-color: rgba(109, 93, 252, 0.12);

  --header-shadow:
    0 12px 40px rgba(38, 45, 77, 0.08),
    0 2px 10px rgba(38, 45, 77, 0.04);

  --button-shadow: 0 10px 25px rgba(109, 93, 252, 0.25);

  --header-radius: 22px;
  --button-radius: 13px;

  --transition: 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ریست اولیه */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;

  color: var(--text-color);
  background:
    radial-gradient(
      circle at 10% 15%,
      rgba(39, 211, 173, 0.13),
      transparent 28%
    ),
    radial-gradient(
      circle at 90% 5%,
      rgba(109, 93, 252, 0.16),
      transparent 30%
    ),
    var(--page-background);

  font-family: "Vazirmatn", Tahoma, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
a {
  font: inherit;
}

/* هدر اصلی */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;

  width: 100%;
  padding: 18px 24px;
}

/* افکت شیشه‌ای هدر */
.header-container {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  width: min(100%, 1400px);
  min-height: 78px;
  margin-inline: auto;
  padding: 12px 16px 12px 14px;

  background: var(--header-background);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--header-radius);
  box-shadow: var(--header-shadow);

  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

/* خط گرادیانی ظریف پایین هدر */
.header-container::after {
  position: absolute;
  right: 10%;
  bottom: -1px;

  width: 80%;
  height: 1px;

  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    rgba(109, 93, 252, 0.45),
    transparent
  );
}

/* منوی سایت */
.main-navigation {
  display: flex;
  align-items: center;
}

.navigation-list {
  display: flex;
  align-items: center;
  gap: 5px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.navigation-link {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 46px;
  padding-inline: 13px;

  color: var(--muted-text);
  border-radius: 12px;

  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;

  transition:
    color var(--transition),
    background-color var(--transition),
    transform var(--transition);
}

/* خط متحرک زیر گزینه‌های منو */
.navigation-link::after {
  position: absolute;
  right: 50%;
  bottom: 6px;

  width: 0;
  height: 3px;

  content: "";
  border-radius: 50px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );

  transition:
    width var(--transition),
    right var(--transition);
}

.navigation-link:hover,
.navigation-link:focus-visible,
.navigation-link.active {
  color: var(--primary-color);
  background: rgba(109, 93, 252, 0.07);
}

.navigation-link:hover::after,
.navigation-link:focus-visible::after,
.navigation-link.active::after {
  right: 25%;
  width: 50%;
}

.navigation-link:active {
  transform: scale(0.96);
}

/* بخش دکمه‌های ورود و ثبت‌نام */
.authentication {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: 20px;
}

.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  min-width: 92px;
  min-height: 48px;
  padding-inline: 18px;

  border: 1px solid transparent;
  border-radius: var(--button-radius);

  font-size: 14px;
  font-weight: 700;

  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

/* دکمه ورود */
.login-button {
  color: var(--primary-color);
  background: rgba(109, 93, 252, 0.06);
  border-color: rgba(109, 93, 252, 0.16);
}

.login-button:hover,
.login-button:focus-visible {
  color: #ffffff;
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* دکمه ثبت‌نام */
/* حالت پیش‌فرض دکمه ثبت‌نام */
.register-button {
 
  direction: ltr;

  color: var(--primary-color);
  background: rgba(109, 93, 252, 0.06);
  border-color: rgba(109, 93, 252, 0.16);
  box-shadow: none;
}

/* حفظ راست‌چین بودن متن فارسی */
.register-button .button-text {
  direction: rtl;
}

/* حالت هاور و فوکوس دکمه ثبت‌نام */
.register-button:hover,
.register-button:focus-visible {
  color: #ffffff;

  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );

  border-color: var(--primary-color);
  box-shadow: var(--button-shadow);
  transform: translateY(-3px);
}

/* حرکت فلش هنگام هاور */
.register-button:hover .button-arrow,
.register-button:focus-visible .button-arrow {
  transform: translateX(-4px);
}

/* نمایش واضح فوکوس برای کاربران کیبورد */
.navigation-link:focus-visible,
.auth-button:focus-visible,
.menu-button:focus-visible {
  outline: 3px solid rgba(109, 93, 252, 0.25);
  outline-offset: 3px;
}

/* دکمه همبرگری در حالت دسکتاپ پنهان است */
.menu-checkbox,
.menu-button {
  display: none;
}

/* محتوای نمایشی صفحه */
.page-content {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
  

}

.hero-section {
  display: grid;
  place-items: center;
  
  min-height: calc(10vh - 150px);
  padding-block: 70px;

  text-align: center;
}

.hero-badge {
  display: inline-flex;
  padding: 8px 16px;
  
  color: var(--primary-color);
  background: rgba(109, 93, 252, 0.08);
  border: 1px solid rgba(109, 93, 252, 0.12);
  border-radius: 100px;

  font-size: 13px;
  font-weight: 700;
}

.hero-section h1 {
  max-width: 800px;
  margin: 20px 0 16px;
  font-size: 20px;
  /*font-size: clamp(36px, 6vw, 52px);*/
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -2px;
 
}

.hero-section h1 span {
  color: transparent;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  background-clip: text;
  -webkit-background-clip: text;
  
}

.hero-section p {
  max-width: 620px;
  margin: 0;
  
  color: var(--muted-text);

  font-size: clamp(10px, 2vw, 18px);
  line-height: 2;
}

/* تبلت و صفحه‌های متوسط */
@media (max-width: 1100px) {
  .navigation-list {
    gap: 1px;
  }

  .navigation-link {
    padding-inline: 9px;
    font-size: 13px;
  }

  .authentication {
    margin-right: 10px;
  }




}

/* نسخه موبایل */
@media (max-width: 900px) {
  .hero-section h1 span {
font-size: 15px;
  
}

.hero-section p {
  font-size: 10px;
}

  .site-header {
    padding: 12px;
  }

  .header-container {
    min-height: 70px;
    padding: 10px 12px;
  }

  /* دکمه همبرگری */
  .menu-button {
    position: relative;
    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    width: 46px;
    height: 46px;

    cursor: pointer;
    background: rgba(109, 93, 252, 0.08);
    border: 1px solid rgba(109, 93, 252, 0.13);
    border-radius: 13px;

    transition:
      background-color var(--transition),
      transform var(--transition);
  }

  .menu-button:hover {
    background: rgba(109, 93, 252, 0.14);
  }

  .menu-button span {
    display: block;

    width: 21px;
    height: 2px;

    background: var(--primary-color);
    border-radius: 10px;

    transition:
      transform var(--transition),
      opacity var(--transition);
  }

  /* تبدیل آیکون همبرگری به ضربدر */
  .menu-checkbox:checked + .menu-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-checkbox:checked + .menu-button span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .menu-checkbox:checked + .menu-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* منوی بازشونده موبایل */
.main-navigation {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;

  visibility: hidden;
  overflow: hidden;

  max-height: 0;
  padding: 0;

  opacity: 0;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(109, 93, 252, 0.1);
  border-radius: 18px;
  box-shadow: var(--header-shadow);

  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);

  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;

  transform: translateY(-12px);

  transition:
    max-height 400ms ease,
    padding 300ms ease,
    opacity 250ms ease,
    visibility 250ms ease,
    transform 300ms ease;
}

.menu-checkbox:checked ~ .main-navigation {
  visibility: visible;

  max-height: calc(100vh - 105px);
  max-height: calc(100dvh - 105px);
  padding: 12px;

  overflow-x: hidden;
  overflow-y: auto;

  opacity: 1;
  transform: translateY(0);
}

  .navigation-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .navigation-link {
    justify-content: flex-start;
    width: 100%;
    padding-inline: 16px;
    font-size: 14px;
  }

  .navigation-link::after {
    display: none;
  }

  .authentication {
    gap: 7px;
    margin-right: auto;
  }

.auth-button {
  width: 100px;
  height: 44px;
  padding: 0 10px;
}

}
@media (max-width: 900px) {
  body:has(.menu-checkbox:checked) {
    overflow: hidden;
  }
}
/* اصلاح منوی موبایل در حالت افقی */
/* اصلاح کامل منوی موبایل در حالت افقی (Landscape) */
/* اصلاح نهایی منوی موبایل در حالت افقی (Landscape) */
@media (max-width: 900px) and (orientation: landscape) {
  /* ۱. بهینه‌سازی ارتفاع هدر در حالت افقی برای حفظ فضا */
  .site-header {
    padding: 6px 12px !important;
  }
  
  .header-container {
    min-height: 58px !important;
    padding: 6px 12px !important;
  }

  /* ۲. بازنشانی دقیق منوی ناوبری */
  .main-navigation {
    position: fixed !important;
    top: 76px !important; /* قرارگیری دقیق زیر هدر اصلاح‌شده */
    right: 12px !important;
    left: 12px !important;
    
    /* حل مشکل غیب شدن گزینه اول با مدیریت صحیح overflow */
    max-height: calc(100dvh - 88px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;

    /* تراز کردن گزینه‌ها از ابتدای منو */
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    
    padding: 8px !important;
    transform: translateY(-10px);
    transition: transform 0.25s ease, opacity 0.2s ease, visibility 0.2s;
  }

  /* ۳. باز شدن صحیح منو */
  .menu-checkbox:checked ~ .main-navigation {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  /* ۴. اصلاح چیدمان داخلی لیست و عناصر فرزند */
  .navigation-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important; /* حذف هرگونه پدینگ مزاحم که آیتم اول را بالا می‌کشد */
  }

  .navigation-link {
    min-height: 42px !important;
    padding-block: 6px !important;
    margin: 0 !important; /* ریست کردن مارجین‌ها */
  }

  /* اضافه کردن یک فاصله ایمن در انتهای لیست برای اسکرول راحت */
  .navigation-list::after {
    content: "";
    display: block;
    height: 12px;
    width: 100%;
  }
}



/* موبایل‌های کوچک */
@media (max-width: 480px) {
  .header-container {
    border-radius: 18px;
  }

  .authentication {
    gap: 5px;
  }

.auth-button {
  width: 84px;
  height: 42px;
  padding: 0 7px;
  border-radius: 11px;
  font-size: 12px;
}


  .button-arrow {
    display: none;
  }

  .hero-section {
    padding-block: 50px;
  }

  .hero-section h1 {
    letter-spacing: -1px;
    font-size: 40px;
  }
}

/* کاهش انیمیشن برای کاربرانی که این گزینه را فعال کرده‌اند */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/*  ------------------------------------------------  */
/*   شروع اسلایدر  */


/* =====================================================
   تنظیمات پایه صفحه
====================================================== */

:root {
    --primary-color: #7c3aed;
    --secondary-color: #06b6d4;
    --dark-color: #111827;
    --light-color: #ffffff;
    --muted-color: rgba(255, 255, 255, 0.72);
    --transition: 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Vazirmatn", sans-serif;
    background: #f5f3ff;
    overflow-x: hidden;
}

button,
a {
    font-family: inherit;
}

button {
    border: none;
    cursor: pointer;
}

/* =====================================================
   بدنه اصلی اسلایدر
====================================================== */

.modern-slider {
    position: relative;
    width: 100%;
    min-height: 450px; /* این مقدار را تغییر دهید */
    overflow: hidden;
    isolation: isolate;
    background: var(--dark-color);
}
/* افکت نور پس‌زمینه اسلایدر */
.modern-slider::before,
.modern-slider::after {
    content: "";
    position: absolute;
    z-index: 2;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.25;
    pointer-events: none;
}

.modern-slider::before {
    top: -100px;
    right: -80px;
    background: #a855f7;
}

.modern-slider::after {
    bottom: -100px;
    left: -80px;
    background: #06b6d4;
}

/* =====================================================
   محفظه اصلی اسلایدها
====================================================== */
.slider-track {
    position: relative;
    width: 100%;
    min-height: 450px; /* این مقدار را هم همان‌قدر تغییر دهید */
}

/* =====================================================
   طراحی هر اسلاید
====================================================== */

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 8%;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.08);
    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition);
}

/* اسلاید فعال */
.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 3;
}

/* پس‌زمینه اسلاید اول */
.slide:nth-child(1) {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img/slide-3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* پس‌زمینه اسلاید دوم */
.slide:nth-child(2) {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img/slide-2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* پس‌زمینه اسلاید سوم */
.slide:nth-child(3) {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img/hevar-3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* لایه تزئینی مشبک روی اسلایدر */
.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent);
}

/* =====================================================
   محتوای متنی داخل اسلاید
====================================================== */

.slide-content {
    width: min(900px, 100%);
    text-align: center;
    color: var(--light-color);
    position: relative;
    z-index: 5;
   
    margin-bottom: 60px; /* این خط را حتما اضافه کنید تا همیشه از پایین فاصله داشته باشد */
}


/* شماره کوچک بالای متن */
.slide-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateY(20px);
    opacity: 0;
    transition: 0.7s ease 0.15s;
}

/* متن اصلی اسلاید */
.slide-text {
    margin: 0 auto 38px;
    max-width: 780px;
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 4.8rem);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -1.5px;
    transform: translateY(35px);
    opacity: 0;
    transition: 0.8s ease 0.25s;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}

/* توضیح کوتاه زیر متن اصلی */
.slide-description {
    max-width: 650px;
    margin: 0 auto 38px;
    color: var(--muted-color);
    font-size: clamp(0.95rem, 1.7vw, 1.15rem);
    line-height: 2;
    transform: translateY(35px);
    opacity: 0;
    transition: 0.8s ease 0.35s;
}

/* دکمه بیشتر */
.more-button {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 150px;
    min-height: 54px;
    padding: 14px 28px;
    overflow: hidden;
    border-radius: 14px;
    color: #111827;
    background: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transform: translateY(35px);
    opacity: 0;
    transition:
        transform 0.8s ease 0.45s,
        opacity 0.8s ease 0.45s,
        color 0.3s ease,
        box-shadow 0.3s ease;
}

/* افکت رنگی روی دکمه */
.more-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, #a855f7, #06b6d4);
    transform: translateX(110%);
    transition: transform 0.45s ease;
    z-index: -1;
}

.more-button:hover {
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.more-button:hover::before {
    transform: translateX(0);
}

/* نمایش انیمیشن عناصر اسلاید فعال */
.slide.active .slide-number,
.slide.active .slide-text,
.slide.active .slide-description,
.slide.active .more-button {
    transform: translateY(0);
    opacity: 1;
}

/* فلش کوچک داخل دکمه */
.more-button span {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.more-button:hover span {
    transform: translateX(-5px);
}

/* =====================================================
   دکمه‌های قبلی و بعدی
====================================================== */

.slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    font-size: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateY(-50%);
    transition: 0.3s ease;
}

.slider-arrow:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

/* مکان فلش سمت راست */
.arrow-next {
    right: 35px;
}

/* مکان فلش سمت چپ */
.arrow-prev {
    left: 35px;
}

/* =====================================================
   نقاط پایین اسلایدر
====================================================== */

.slider-dots {
    position: absolute;
    right: 50%;
    bottom: 42px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(50%);
}

.dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.35s ease;
}

.dot.active {
    width: 34px;
    border-radius: 20px;
    background: #ffffff;
}

/* =====================================================
   شمارنده اسلایدها
====================================================== */

.slider-counter {
    position: absolute;
    bottom: 38px;
    left: 8%;
    z-index: 10;
    direction: ltr;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}

.slider-counter .current-number {
    color: #ffffff;
    font-size: 22px;
}

/* =====================================================
   تنظیمات نمایشگرهای متوسط
====================================================== */

@media (max-width: 900px) {
    .modern-slider,
    .slider-track {
        min-height: 400px;
    }

    .slide {
        padding: 60px 12%;
    }

    .slider-arrow {
        width: 46px;
        height: 46px;
    }

    .arrow-next {
        right: 20px;
    }

    .arrow-prev {
        left: 20px;
    }

    .slider-counter {
        left: 12%;
    }
}

/* =====================================================
   تنظیمات تبلت عمودی و موبایل افقی
====================================================== */

@media (max-width: 700px) {
    .modern-slider,
    .slider-track {
        min-height: 350px;
    }

    .slide {
        padding: 55px 17%;
    }

    .slide-number {
        width: 46px;
        height: 46px;
        margin-bottom: 20px;
    }

    .slide-text {
        margin-bottom: 24px;
        font-size: clamp(1.8rem, 8vw, 3rem);
        letter-spacing: -0.8px;
    }

    .slide-description {
        margin-bottom: 28px;
        font-size: 0.9rem;
        line-height: 1.9;
    }

    .more-button {
        min-height: 50px;
        padding: 12px 24px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 19px;
    }

    .arrow-next {
        right: 12px;
    }

    .arrow-prev {
        left: 12px;
    }

    .slider-dots {
        bottom: 25px;
    }

    .slider-counter {
        bottom: 22px;
        left: 17%;
        font-size: 11px;
    }

    .slider-counter .current-number {
        font-size: 18px;
    }
}

/* =====================================================
   تنظیمات موبایل باریک
====================================================== */

@media (max-width: 420px) {
    .modern-slider,
    .slider-track {
        min-height: 320px;
    }

    /* این کد را جایگزین کلاس .slide قبلی در فایل CSS خود کنید */
    .slide {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column; /* این را اضافه کنید */
        justify-content: center; /* محتوا را عمودی وسط می‌آورد */
        align-items: center; /* محتوا را افقی وسط می‌آورد */
        padding: 20px 8%; /* پدینگ پایین را حذف کردیم چون با مارجین کنترلش می‌کنیم */
        opacity: 0;
        visibility: hidden;
        transform: scale(1.08);
        transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
    }


    .slide-text {
        font-size: 1.75rem;
        line-height: 1.55;
    }

    .slide-description {
        font-size: 0.83rem;
    }

    .slider-counter {
        display: none;
    }
}

/* =====================================================
   تنظیمات حالت افقی موبایل
====================================================== */

@media (max-height: 500px) and (orientation: landscape) {
    .modern-slider,
    .slider-track {
        min-height: 430px;
    }

    .slide {
        padding-top: 35px;
        padding-bottom: 45px;
    }

    .slide-number {
        width: 38px;
        height: 38px;
        margin-bottom: 10px;
        font-size: 12px;
    }

    .slide-text {
        margin-bottom: 10px;
        font-size: clamp(1.5rem, 5vw, 2.4rem);
    }

    .slide-description {
        margin-bottom: 15px;
        font-size: 0.78rem;
        line-height: 1.6;
    }

    .more-button {
        min-height: 42px;
        padding: 8px 20px;
        font-size: 0.8rem;
    }

    .slider-dots {
        bottom: 14px;
    }

    .slider-counter {
        bottom: 12px;
    }
}

/* =====================================================
   کاهش انیمیشن برای کاربرانی که این گزینه را فعال کرده‌اند
====================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 700px) {
    .slide-content {
        margin-bottom: 40px; /* فاصله در موبایل کمتر باشد */
    }
    .more-button {
        min-height: 45px; /* کمی ارتفاع دکمه را کم کردیم */
        padding: 10px 20px;
    }
}
/* پایان اسلایدر */



/* ----------------------------------------------*/

/* انتخاب یکی از بخش ها */

.section-select-title {
  position: relative;
  width: fit-content;
  max-width: 92%;
  margin: 10px auto -16px;
  padding: 0 18px;
  text-align: center;
  direction: rtl;
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.8;
  color: #eafcff;

  text-shadow:
    0 0 8px rgba(0, 255, 225, 0.55),
    0 0 18px rgba(0, 207, 255, 0.25);

  animation: sectionSelectGlow 2.4s ease-in-out infinite;
}

.section-select-title::before,
.section-select-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 34px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(17, 29, 27, 0.75),
    transparent
  );
  box-shadow: 0 0 12px rgba(67, 77, 75, 0.55);
  opacity: 0.85;
}

.section-select-title::before {
  right: 100%;
}

.section-select-title::after {
  left: 100%;
}

@keyframes sectionSelectGlow {
  0% {
    color: rgba(234, 252, 255, 0.72);
    opacity: 0.72;
    text-shadow:
      0 0 5px rgba(0, 255, 225, 0.25),
      0 0 12px rgba(0, 207, 255, 0.12);
  }

  42% {
    color: #9edd0a;
    opacity: 1;
    text-shadow:
      0 0 9px rgba(0, 255, 225, 0.75),
      0 0 22px rgba(0, 207, 255, 0.45), 
      0 0 34px rgba(0, 255, 225, 0.18);
  }

  70% {
    color: #da7272;
    opacity: 0.92;
    text-shadow:
      0 0 7px rgba(255, 255, 255, 0.45),
      0 0 20px rgba(0, 255, 225, 0.35);
  }

  100% {
    color: rgba(49, 135, 150, 0.72);
    opacity: 0.72;
    text-shadow:
      0 0 5px rgba(0, 255, 225, 0.25),
      0 0 12px rgba(0, 207, 255, 0.12);
  }
}

@media (max-width: 600px) {
  .section-select-title {
    margin: 4px auto -10px;
    padding: 0 12px;
    font-size: 16px;
    line-height: 1.9;
  }

  .section-select-title::before,
  .section-select-title::after {
    width: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-select-title {
    animation: none;
    color: #eafcff;
  }
}


/*   پایان یکی از بخش ها را انتخاب کنید  */




/* شروع بخش مکالمه*/


  /* =====================================================
           متغیرهای اصلی طراحی
        ====================================================== */

        :root {
            --page-background: #f6f7fb;
            --text-dark: #172033;
            --text-muted: #697386;
            --white-color: #ffffff;
            --border-color: rgba(255, 255, 255, 0.65);

            --purple-color: #7857ff;
            --purple-dark: #5535d8;

            --blue-color: #2196f3;
            --blue-dark: #1266b1;

            --orange-color: #f97316;
            --orange-dark: #c2410c;

            --green-color: #16a34a;
            --green-dark: #08752f;

            --card-radius: 28px;
            --main-transition: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
        }

        /* =====================================================
           حذف فاصله‌های پیش‌فرض مرورگر
        ====================================================== */

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* =====================================================
           تنظیمات پایه صفحه
        ====================================================== */

        html {
            scroll-behavior: smooth;
        }

        body {
            min-width: 280px;
            min-height: 100vh;
            overflow-x: hidden;
            background:
                radial-gradient(circle at 8% 10%, rgba(120, 87, 255, 0.10), transparent 24%),
                radial-gradient(circle at 90% 85%, rgba(33, 150, 243, 0.10), transparent 25%),
                var(--page-background);
            color: var(--text-dark);
            font-family: "Vazirmatn", sans-serif;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        button {
            border: 0;
            cursor: pointer;
            font-family: inherit;
        }

        /* =====================================================
           بخش اصلی کارت‌های مکالمه
        ====================================================== */

        .conversation-section {
            position: relative;
            width: min(1440px, 100%);
            margin: 0 auto;
            padding: clamp(60px, 8vw, 120px) clamp(16px, 5vw, 70px);
            isolation: isolate;
        }

        /* نورهای تزئینی پس‌زمینه */
        .conversation-section::before,
        .conversation-section::after {
            content: "";
            position: absolute;
            z-index: -1;
            border-radius: 50%;
            pointer-events: none;
            filter: blur(12px);
        }

        .conversation-section::before {
            top: 7%;
            right: -100px;
            width: 240px;
            height: 240px;
            background: rgba(120, 87, 255, 0.12);
        }

        .conversation-section::after {
            bottom: 5%;
            left: -100px;
            width: 260px;
            height: 260px;
            background: rgba(33, 150, 243, 0.10);
        }

        /* =====================================================
           سربرگ صفحه
        ====================================================== */

        .conversation-header {
            max-width: 760px;
            margin: 0 auto clamp(38px, 6vw, 70px);
            text-align: center;
        }

        /* برچسب کوچک بالای عنوان */
        .header-badge {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            margin-bottom: 18px;
            padding: 9px 16px;
            border: 1px solid rgba(120, 87, 255, 0.18);
            border-radius: 999px;
            color: var(--purple-dark);
            background: rgba(120, 87, 255, 0.08);
            font-size: 0.82rem;
            font-weight: 700;
        }

        /* نقطه رنگی داخل برچسب */
        .header-badge::before {
            content: "";
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--purple-color);
            box-shadow: 0 0 0 5px rgba(120, 87, 255, 0.12);
        }

        /* عنوان اصلی صفحه */
        .conversation-title {
            margin-bottom: 17px;
            color: var(--text-dark);
            font-size: 30px;
            font-weight: 900;
            line-height: 1.4;
            letter-spacing: -1px;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        /* متن توضیحی زیر عنوان */
        .conversation-description {
            max-width: 620px;
            margin: 0 auto;
            color: var(--text-muted);
            font-size: clamp(0.9rem, 1.5vw, 1.05rem);
            line-height: 2.1;
        }

        /* =====================================================
           شبکه قرارگیری کارت‌ها
        ====================================================== */

        .conversation-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: clamp(16px, 2vw, 25px);
        }

        /* =====================================================
           ساختار اصلی هر کارت
        ====================================================== */

        .conversation-card {
            --card-color: var(--purple-color);
            --card-dark-color: var(--purple-dark);

            position: relative;
            display: flex;
            flex-direction: column;
            min-height: 390px;
            overflow: hidden;
            padding: clamp(22px, 2.5vw, 32px);
            border: 1px solid var(--border-color);
            border-radius: var(--card-radius);
            background: rgba(255, 255, 255, 0.72);
            box-shadow:
                0 15px 45px rgba(31, 41, 55, 0.07),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            isolation: isolate;
            transition:
                transform var(--main-transition),
                box-shadow var(--main-transition),
                border-color var(--main-transition);
        }

        /* رنگ اختصاصی کارت دوم */
        .conversation-card.card-blue {
            --card-color: var(--blue-color);
            --card-dark-color: var(--blue-dark);
        }

        /* رنگ اختصاصی کارت سوم */
        .conversation-card.card-orange {
            --card-color: var(--orange-color);
            --card-dark-color: var(--orange-dark);
        }

        /* رنگ اختصاصی کارت چهارم */
        .conversation-card.card-green {
            --card-color: var(--green-color);
            --card-dark-color: var(--green-dark);
        }

        /* نور رنگی داخل کارت */
        .conversation-card::before {
            content: "";
            position: absolute;
            z-index: -1;
            top: -90px;
            left: -80px;
            width: 220px;
            height: 220px;
            border-radius: 50%;
            background: var(--card-color);
            opacity: 0.13;
            filter: blur(8px);
            transition: transform var(--main-transition);
        }

        /* خط رنگی بالای کارت */
        .conversation-card::after {
            content: "";
            position: absolute;
            top: 0;
            right: 28px;
            left: 28px;
            height: 4px;
            border-radius: 0 0 10px 10px;
            background: var(--card-color);
            transform: scaleX(0.35);
            transform-origin: center;
            transition: transform var(--main-transition);
        }

        /* افکت هاور کارت */
        .conversation-card:hover {
            border-color: rgba(120, 87, 255, 0.24);
            box-shadow:
                0 25px 65px rgba(31, 41, 55, 0.14),
                0 0 0 1px rgba(255, 255, 255, 0.8) inset;
            transform: translateY(-12px);
        }

        .conversation-card:hover::before {
            transform: scale(1.5);
        }

        .conversation-card:hover::after {
            transform: scaleX(1);
        }

        /* =====================================================
           ردیف بالایی کارت
        ====================================================== */

        .card-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 15px;
            margin-bottom: 30px;
        }

        /* شماره کارت */
        .card-number {
            color: rgba(23, 32, 51, 0.38);
            direction: ltr;
            font-size: 0.78rem;
            font-weight: 800;
            letter-spacing: 2px;
        }

        /* =====================================================
           آیکون اختصاصی هر کارت
        ====================================================== */

        .card-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 64px;
            height: 64px;
            border: 1px solid rgba(255, 255, 255, 0.85);
            border-radius: 21px;
            color: var(--card-color);
            background: rgba(255, 255, 255, 0.75);
            box-shadow:
                0 12px 25px rgba(31, 41, 55, 0.08),
                0 0 0 7px color-mix(in srgb, var(--card-color) 10%, transparent);
            transition: transform var(--main-transition);
        }

        .conversation-card:hover .card-icon {
            transform: rotate(-8deg) scale(1.08);
        }

        /* اندازه آیکون SVG */
        .card-icon svg {
            width: 31px;
            height: 31px;
            fill: none;
            stroke: currentColor;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-width: 1.8;
        }

        /* =====================================================
           محتوای متنی کارت
        ====================================================== */

        .card-content {
            flex: 1;
        }

        /* عنوان کارت */
        .card-title {
            margin-bottom: 15px;
            color: var(--text-dark);
            font-size: clamp(1.15rem, 1.7vw, 1.4rem);
            font-weight: 800;
            line-height: 1.7;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: rebeccapurple;
        }

        /* توضیحات کارت */
        .card-description {
            color: var(--text-muted);
            font-size: 0.9rem;
            line-height: 2.05;
        }

        /* =====================================================
           دکمه شروع کنید
        ====================================================== */

        .start-button {
            display: inline-flex;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            width: 100%;
            min-height: 52px;
            margin-top: 28px;
            padding: 12px 17px 12px 13px;
            overflow: hidden;
            border-radius: 15px;
            color: var(--card-dark-color);
            background: color-mix(in srgb, var(--card-color) 12%, white);
            font-size: 0.88rem;
            font-weight: 800;
            transition:
                color 0.3s ease,
                background 0.3s ease,
                transform 0.3s ease;
        }

        /* دایره فلش داخل دکمه */
        .button-arrow {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 31px;
            height: 31px;
            border-radius: 10px;
            color: #ffffff;
            background: var(--card-color);
            font-size: 1.15rem;
            line-height: 1;
            transition: transform 0.3s ease;
        }

        /* افکت هاور دکمه */
        .start-button:hover {
            color: #ffffff;
            background: var(--card-color);
            transform: translateY(-3px);
        }

        .start-button:hover .button-arrow {
            color: var(--card-color);
            background: #ffffff;
            transform: translateX(-4px);
        }

        /* =====================================================
           نمایشگرهای بزرگ و مانیتورهای عریض
        ====================================================== */

        @media (min-width: 1600px) {
            .conversation-section {
                max-width: 1600px;
            }

            .conversation-grid {
                gap: 32px;
            }

            .conversation-card {
                min-height: 420px;
                padding: 38px;
            }
        }

        /* =====================================================
           تبلت افقی و لپ‌تاپ‌های کوچک
        ====================================================== */

        @media (max-width: 1120px) {
            .conversation-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .conversation-card {
                min-height: 350px;
            }
        }

        /* =====================================================
           تبلت عمودی و موبایل‌های بزرگ
        ====================================================== */

        @media (max-width: 680px) {
            .conversation-section {
                padding-top: 55px;
                padding-bottom: 55px;
            }

            .conversation-header {
                margin-bottom: 34px;
            }

            .conversation-grid {
                grid-template-columns: 1fr;
                gap: 18px;
            }

            .conversation-card {
                min-height: 0;
                padding: 24px;
            }

            .card-top {
                margin-bottom: 23px;
            }

            .card-description {
                max-width: 600px;
            }

            .start-button {
                margin-top: 24px;
            }
        }

        /* =====================================================
           موبایل‌های باریک
        ====================================================== */

        @media (max-width: 380px) {
            .conversation-section {
                padding-right: 13px;
                padding-left: 13px;
            }

            .conversation-card {
                padding: 20px;
                border-radius: 23px;
            }

            .card-icon {
                width: 56px;
                height: 56px;
                border-radius: 18px;
            }

            .card-icon svg {
                width: 27px;
                height: 27px;
            }

            .card-title {
                font-size: 1.08rem;
            }

            .card-description {
                font-size: 0.84rem;
            }
        }

        /* =====================================================
           تنظیمات حالت افقی موبایل
        ====================================================== */

        @media (max-height: 520px) and (orientation: landscape) {
            .conversation-section {
                padding-top: 42px;
                padding-bottom: 42px;
            }

            .conversation-header {
                margin-bottom: 28px;
            }

            .conversation-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 14px;
            }

            .conversation-card {
                min-height: 300px;
                padding: 20px;
            }

            .card-top {
                margin-bottom: 17px;
            }

            .card-icon {
                width: 52px;
                height: 52px;
                border-radius: 17px;
            }

            .card-icon svg {
                width: 25px;
                height: 25px;
            }

            .card-title {
                margin-bottom: 8px;
                font-size: 1rem;
            }

            .card-description {
                font-size: 0.78rem;
                line-height: 1.8;
            }

            .start-button {
                min-height: 44px;
                margin-top: 16px;
                padding: 8px 12px 8px 9px;
                font-size: 0.78rem;
            }

            .button-arrow {
                width: 26px;
                height: 26px;
            }
        }

        /* =====================================================
           کاهش انیمیشن برای کاربرانی که به حرکت حساس هستند
        ====================================================== */

        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                scroll-behavior: auto !important;
                transition-duration: 0.01ms !important;
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
            }
        }

/* پایان بخش مکالمه */







/*   شرکت */

.sherkat{
  color: rgb(148, 93, 93);

 
  display: flex;
 
  align-items: center;
  justify-content: center;
  
  font-size: 10px;

 transform: translateY(30px);

}



/*  --------------------------------------- */


/* شروع چت بات  */


        /* =====================================================
           متغیرهای اصلی طراحی
        ====================================================== */
        :root {
            --bg-page: #f5f7fb;
            --text-dark: #172033;
            --text-muted: #6b7280;
            --white: #ffffff;

            --primary: #7c3aed;
            --primary-dark: #5b21b6;
            --secondary: #0ea5e9;
            --accent: #14b8a6;

            --border: rgba(255,255,255,0.65);
            --shadow: 0 25px 60px rgba(15, 23, 42, 0.14);
            --radius-xl: 28px;
            --radius-lg: 22px;
            --radius-md: 16px;

            --transition: 0.35s cubic-bezier(.22,1,.36,1);
        }

        /* =====================================================
           حذف فاصله‌های پیش‌فرض
        ====================================================== */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: "Vazirmatn", sans-serif;
            min-height: 100vh;
            background:
                radial-gradient(circle at top right, rgba(124, 58, 237, 0.10), transparent 28%),
                radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.11), transparent 26%),
                linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
            color: var(--text-dark);
            overflow-x: hidden;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        button,
        input {
            font: inherit;
        }

        /* =====================================================
           دکمه شناور باز کردن چت
        ====================================================== */
        .chat-fab {
            position: fixed;
            z-index: 9998;
            bottom: 22px;
            left: 22px;
            width: 64px;
            height: 64px;
            border: 1px solid rgba(255,255,255,0.75);
            border-radius: 22px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: #fff;
            box-shadow: 0 18px 35px rgba(124, 58, 237, 0.35);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: transform var(--transition), box-shadow var(--transition), border-radius var(--transition);
        }

        .chat-fab:hover {
            transform: translateY(-4px) scale(1.03);
            box-shadow: 0 22px 45px rgba(124, 58, 237, 0.42);
        }

        .chat-fab:active {
            transform: scale(0.98);
        }

        .chat-fab svg {
            width: 28px;
            height: 28px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        /* نقطه اعلان کوچک */
        .chat-fab .fab-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #22c55e;
            border: 2px solid #fff;
            box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
            animation: pulse 1.8s infinite;
        }

        @keyframes pulse {
            0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
            70%  { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
            100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
        }

        /* =====================================================
           کانتینر اصلی چت‌بات
        ====================================================== */
        .chat-widget {
            position: fixed;
            z-index: 9999;
            bottom: 100px;
            left: 22px;
            width: min(410px, calc(100vw - 24px));
            height: min(78vh, 680px);
            min-height: 520px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid var(--border);
            border-radius: var(--radius-xl);
            background: rgba(255,255,255,0.78);
            backdrop-filter: blur(22px);
            -webkit-backdrop-filter: blur(22px);
            box-shadow: var(--shadow);
            transform: translateY(14px) scale(0.96);
            opacity: 0;
            pointer-events: none;
            transition: opacity var(--transition), transform var(--transition);
        }

        .chat-widget.is-open {
            transform: translateY(0) scale(1);
            opacity: 1;
            pointer-events: auto;
        }

        /* =====================================================
           هدر چت‌بات
        ====================================================== */
        .chat-header {
            position: relative;
            padding: 18px 18px 16px;
            background:
                linear-gradient(135deg, rgba(124,58,237,0.98), rgba(14,165,233,0.96));
            color: #fff;
            border-bottom: 1px solid rgba(255,255,255,0.12);
        }

        .chat-header::before {
            content: "";
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at top left, rgba(255,255,255,0.22), transparent 28%),
                radial-gradient(circle at bottom right, rgba(255,255,255,0.12), transparent 32%);
            pointer-events: none;
        }

        .chat-header-row {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
        }

        .bot-identity {
            display: flex;
            align-items: center;
            gap: 14px;
            min-width: 0;
        }

        .bot-avatar {
            width: 52px;
            height: 52px;
            border-radius: 18px;
            background: rgba(255,255,255,0.18);
            border: 1px solid rgba(255,255,255,0.2);
            display: grid;
            place-items: center;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
            flex: 0 0 auto;
        }

        .bot-avatar svg {
            width: 28px;
            height: 28px;
            fill: none;
            stroke: white;
            stroke-width: 1.8;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .bot-info {
            min-width: 0;
        }

        .bot-name {
            font-size: 1.02rem;
            font-weight: 900;
            line-height: 1.5;
            margin-bottom: 3px;
        }

        .bot-status {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            font-size: 0.82rem;
            font-weight: 600;
            opacity: 0.92;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #22c55e;
            box-shadow: 0 0 0 5px rgba(34,197,94,0.12);
        }

        .chat-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .icon-btn {
            width: 40px;
            height: 40px;
            border: 0;
            border-radius: 14px;
            background: rgba(255,255,255,0.14);
            color: #fff;
            cursor: pointer;
            display: grid;
            place-items: center;
            transition: transform var(--transition), background var(--transition);
        }

        .icon-btn:hover {
            transform: translateY(-2px);
            background: rgba(255,255,255,0.22);
        }

        .icon-btn svg {
            width: 18px;
            height: 18px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        /* =====================================================
           پیشنهادهای سریع
        ====================================================== */
        .quick-replies {
            position: relative;
            display: flex;
            gap: 10px;
            overflow-x: auto;
            padding: 14px 16px 0;
            scrollbar-width: none;
        }

        .quick-replies::-webkit-scrollbar {
            display: none;
        }

        .quick-chip {
            white-space: nowrap;
            border: 1px solid rgba(124,58,237,0.12);
            background: rgba(124,58,237,0.06);
            color: var(--primary-dark);
            padding: 10px 14px;
            border-radius: 999px;
            font-size: 0.82rem;
            font-weight: 700;
            cursor: pointer;
            transition: transform var(--transition), background var(--transition), color var(--transition);
        }

        .quick-chip:hover {
            transform: translateY(-2px);
            background: rgba(124,58,237,0.13);
        }

        /* =====================================================
           ناحیه پیام‌ها
        ====================================================== */
        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 18px 16px 10px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            scroll-behavior: smooth;
        }

        .chat-messages::-webkit-scrollbar {
            width: 8px;
        }

        .chat-messages::-webkit-scrollbar-thumb {
            background: rgba(100,116,139,0.28);
            border-radius: 999px;
        }

        /* استایل عمومی پیام */
        .message {
            max-width: 82%;
            padding: 12px 14px;
            border-radius: 18px;
            font-size: 0.93rem;
            line-height: 1.95;
            box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
            animation: messageIn 0.28s ease;
            word-break: break-word;
        }

        @keyframes messageIn {
            from {
                opacity: 0;
                transform: translateY(8px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* پیام بات */
        .message.bot {
            align-self: flex-start;
            background: rgba(255,255,255,0.9);
            color: #1f2937;
            border: 1px solid rgba(226,232,240,0.9);
            border-top-right-radius: 6px;
        }

        /* پیام کاربر */
        .message.user {
            align-self: flex-end;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: #fff;
            border-top-left-radius: 6px;
        }

        .message-meta {
            display: block;
            margin-top: 7px;
            font-size: 0.72rem;
            opacity: 0.68;
        }
        .card-icon {
                width: 64px;
                height: 64px;
                overflow: hidden;
                border-radius: 12px;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .card-icon img {
                width: 100%;
                height: 100%;
                display: block;
                object-fit: cover;
                object-position: center;
            }


        /* =====================================================
           تایپینگ بات
        ====================================================== */
        .typing {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 12px 14px;
            border-radius: 18px;
            background: rgba(255,255,255,0.9);
            border: 1px solid rgba(226,232,240,0.9);
            width: fit-content;
            align-self: flex-start;
        }

        .typing span {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            animation: typing 1.1s infinite ease-in-out;
        }

        .typing span:nth-child(2) { animation-delay: 0.15s; }
        .typing span:nth-child(3) { animation-delay: 0.3s; }

        @keyframes typing {
            0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
            40% { transform: translateY(-5px); opacity: 1; }
        }

        /* =====================================================
           فوتر چت‌بات و ورودی متن
        ====================================================== */
        .chat-footer {
            padding: 14px;
            border-top: 1px solid rgba(226,232,240,0.9);
            background: rgba(255,255,255,0.95);
        }

        .input-shell {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 10px 10px 12px;
            border: 1px solid rgba(148,163,184,0.22);
            border-radius: 18px;
            background: linear-gradient(180deg, #fff, #f8fafc);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
        }

        .chat-input {
            flex: 1;
            border: 0;
            outline: 0;
            background: transparent;
            color: var(--text-dark);
            font-size: 0.93rem;
            min-width: 0;
        }

        .chat-input::placeholder {
            color: #94a3b8;
        }

        .send-btn {
            width: 44px;
            height: 44px;
            border: 0;
            border-radius: 14px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: #fff;
            cursor: pointer;
            display: grid;
            place-items: center;
            flex: 0 0 auto;
            transition: transform var(--transition), box-shadow var(--transition);
            box-shadow: 0 14px 28px rgba(124, 58, 237, 0.24);
        }

        .send-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 18px 30px rgba(124, 58, 237, 0.28);
        }

        .send-btn svg {
            width: 18px;
            height: 18px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2.4;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .chat-hint {
            padding: 10px 2px 0;
            color: var(--text-muted);
            font-size: 0.75rem;
            line-height: 1.8;
        }

        /* =====================================================
           حالت جمع‌شده در موبایل
        ====================================================== */
        @media (max-width: 720px) {
            .chat-widget {
                left: 12px;
                right: 12px;
                bottom: 86px;
                width: auto;
                height: min(82vh, 720px);
                min-height: 500px;
            }

            .chat-fab {
                left: 12px;
                bottom: 12px;
                width: 60px;
                height: 60px;
                border-radius: 20px;
            }
        }

        /* =====================================================
           موبایل‌های باریک
        ====================================================== */
        @media (max-width: 380px) {
            .chat-widget {
                height: min(84vh, 680px);
                min-height: 470px;
            }

            .bot-avatar {
                width: 46px;
                height: 46px;
                border-radius: 16px;
            }

            .bot-name {
                font-size: 0.96rem;
            }

            .bot-status {
                font-size: 0.76rem;
            }

            .message {
                max-width: 90%;
                font-size: 0.88rem;
            }

            .quick-chip {
                font-size: 0.76rem;
                padding: 9px 12px;
            }
        }

        /* =====================================================
           حالت افقی موبایل
        ====================================================== */
        @media (max-height: 520px) and (orientation: landscape) {
            .chat-widget {
                height: 92vh;
                min-height: 0;
                max-height: 92vh;
            }

            .chat-header {
                padding: 14px 14px 12px;
            }

            .quick-replies {
                padding-top: 10px;
            }

            .chat-messages {
                padding-top: 12px;
            }

            .chat-footer {
                padding: 10px;
            }
        }

        /* =====================================================
           کاهش حرکت برای کاربران حساس
        ====================================================== */
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }

/* پایان چت بات */



/* بر طرف کردن اسکرول افقی */

/* بر طرف کردن اسکرول افقی */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* اِمینان از اینکه اسلایدر از عرض صفحه خارج نشود */
.modern-slider,
.slider-track {
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box;
}

/* تصحیح اسلایدها برای جلوگیری از overflow */
.slide {
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-sizing: border-box;
}

/* کانتینر اصلی اسلایدها */
.slider-track {
    display: flex !important;
    flex-wrap: nowrap !important;
}

/* تنظیمات ریسپانسیو برای اسلایدر */
@media (max-width: 900px) {
    .modern-slider {
        min-height: 350px;
    }

    .slide-content {
        padding: 0 16px;
    }

    .slide-text {
        font-size: clamp(1.8rem, 6vw, 3rem);
    }

    .slide-description {
        font-size: 0.9rem;
    }

    .slider-arrow {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 700px) {
    .modern-slider {
        min-height: 320px;
    }

    .slide {
        padding: 18px 12px;
    }

    .slide-number {
        width: 44px;
        height: 44px;
    }

    .slide-text {
        font-size: 1.7rem;
        line-height: 1.45;
    }

    .slide-description {
        font-size: 0.82rem;
        line-height: 1.7;
    }

    .more-button {
        min-height: 44px;
        padding: 10px 18px;
    }

    .slider-arrow {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .arrow-next {
        right: 10px;
    }

    .arrow-prev {
        left: 10px;
    }

    .chat-widget {
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .slide {
        padding: 16px 10px;
    }

    .slide-text {
        font-size: 1.4rem;
    }

    .slider-arrow {
        width: 38px;
        height: 38px;
    }
}

/* پایان فایل */
/* اصلاح نهایی برای رفع اسکرول افقی و چیدمان اسلایدر */

/* مهار کلی اسکرول افقی */
html, body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
}

/* تنظیم مجدد کانتینر اسلایدر برای جلوگیری از چیدمان خطی اسلایدها */
.modern-slider {
    position: relative;
    overflow: hidden !important; /* بسیار مهم برای حذف اسکرول */
    width: 100%;
    display: block !important;
}

/* اسلایدها باید روی هم قرار بگیرند، نه کنار هم */
.slide {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    z-index: 1;
    display: block !important;
}

/* فقط اسلاید فعال دیده شود */
.slide.active {
    position: relative !important; /* اولین اسلاید فعال ارتفاع کانتینر را تعیین می‌کند */
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* حذف افکت‌های تزئینی که از صفحه بیرون می‌زدند */
.modern-slider::before,
.modern-slider::after {
    display: none !important;
}

/* تنظیمات ریسپانسیو موبایل */
@media (max-width: 768px) {
    .modern-slider {
        min-height: 300px; /* تنظیم ارتفاع در موبایل */
    }

    .slide-text {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
        white-space: normal !important; /* جلوگیری از بیرون زدن متن */
    }

    .slide-description {
        font-size: 0.85rem !important;
        margin-bottom: 15px !important;
    }

    /* مهار دکمه‌های اسلایدر در موبایل */
    .slider-arrow {
        width: 35px !important;
        height: 35px !important;
    }
}

/* مهار ویجت چت در موبایل که باعث اسکرول می‌شد */
@media (max-width: 480px) {
    .chat-widget {
        max-width: 90vw !important;
        left: 5vw !important;
        right: 5vw !important;
    }
}


/* پایان برطرف کردن اسکرول افقی */
