* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #646cff;
    --indigo-color: #4f46e5; 
    --bg-dark: #242424;
    --text-light: rgba(255, 255, 255, 0.87);
}
html, body {
      overflow-x: hidden;
      margin: 0;
      padding: 0;
    }
body {overflow-x: hidden;
    direction: rtl;
    text-align: right;
    font-family: "IRANSans", Tahoma, sans-serif !important;
    background-color: #fff;
    min-height: 100vh;
}


.glass-header {
    background: rgba(255, 255, 255, 255) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 50;
}

.glass-header .nav-link {
    color: #333 !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.glass-header .nav-link:hover {
    color: var(--indigo-color) !important;
    background-color: rgba(79, 70, 229, 0.1) !important; 
}


.btn-outline-indigo {
    border-color: var(--indigo-color);
    color: var(--indigo-color);
}
.btn-outline-indigo:hover {
    background-color: var(--indigo-color);
    color: white !important;
}

.btn-indigo {
    background-color: var(--indigo-color);
    border-color: var(--indigo-color);
    color: white;
}
.btn-indigo:hover {
    background-color: #4338ca; 
    border-color: #4338ca;
}


.glass-header svg {
    fill: #000;
}
.btn-outline-indigo:hover svg, .btn-indigo:hover svg {
    fill: white;
}

#mobile-menu {
    z-index: 60; 
    display: none;
    backdrop-filter: blur(2px);
    background: rgba(0,0,0,0.3);
}
#mobile-menu-content {
    transform: translateX(100%);
    transition: transform .35s ease;
    background-color: white;
    max-width: 288px;
}
.shadow-lg { box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important; }

@media (max-width: 1023px) {
    #sidebar-container {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 300px !important;
        height: 100vh !important;
        background: white !important;
        z-index: 9999 !important;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1) !important;
        overflow-y: auto !important;
        display: block !important;
    }
    #filter-toggle:checked ~ div #sidebar-container,
    #filter-toggle:checked ~ #sidebar-container {
        right: 0 !important;
    }
}

.auth-card { background: #ffffff; border-radius: 15px; border: 1px solid #eee; box-shadow: 0 10px 30px rgba(0,0,0,0.04); padding: 2rem; }

button, .btn-custom { border-radius: 8px; padding: 0.6em 1.2em; font-weight: 500; transition: all 0.25s ease; cursor: pointer; }

/* تنظیمات پایه سایدبار برای دسکتاپ (بالای 1024px) */
@media (min-width: 1025px) {
    #sidebar-container {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 280px;
        background-color: #ffffff;
        border-left: 1px solid #eee;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow: visible;
    }
    #sidebar-container.collapsed { width: 70px; }
    #sidebar-container.collapsed .menu-text { display: none; }
    #sidebar-container.collapsed .nav-item:hover .submenu-box {
        display: block; position: absolute; right: 70px; top: 0; width: 200px;
        background: #fff; box-shadow: -5px 5px 15px rgba(0,0,0,0.1);
        border-radius: 8px 0 0 8px; padding: 10px;
    }
}
.submenu-box { display: none; }
.menu-icon { width: 30px; text-align: center; font-size: 1.2rem; }
.group:hover .dropdown-menu {
  display: flex !important;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 80vw;
  max-width: 900px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-top: 2px solid #2563eb;
  padding: 1.5rem;
  display: none; 
  gap: 1.5rem;
  z-index: 50;
}
.w-32 {
  display: flex;
}

@media (max-width: 991.98px) {
  .dropdown-menu {
    position: static;
    width: 100%;
    background: #f8f9fa;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    display: none;
  }

  .dropdown-menu.active {
    display: block;
  }

  .dropdown-menu > * {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
  }

  .dropdown-menu > *:last-child {
    border-bottom: none;
  }

  .dropdown-menu h4 {
    margin-bottom: 0.5rem;
  }

  .dropdown-menu ul {
    padding-right: 1rem;
  }
}

.group.active svg.fa-chevron-down {
  transform: rotate(180deg);
}
#mobile-menu.visible {
   display: block;
   opacity: 1;
}
/* استایل های پیش فرض برای mobile-menu-content و ... */
/* ... (کدهای قبلی شما) ... */


/* استایل های جدید برای dropdown */

/* وقتی dropdown فعال است */
.nav-item.group .dropdown-menu.active {
  display: block; /* نمایش داده می شود */
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* استایل برای چرخش آیکون */
.nav-item.group .nav-link .svg-chevron-down {
  transition: transform 0.3s ease-in-out;
}

.nav-item.group .nav-link.open .svg-chevron-down {
  transform: rotate(180deg); /* چرخش 180 درجه */
}



/* استایل های موبایل (اگر ناوبری شما ریسپانسیو است) */
@media (max-width: 991.98px) {
  .nav-item.group .dropdown-menu {
    position: static; /* در موبایل، dropdown باید زیر لینک نمایش داده شود */
    display: none; /* مخفی پیش فرض */
    transform: none !important; /* غیرفعال کردن transition دسکتاپ */
    box-shadow: none; /* بدون سایه */
    opacity: 1; /* همیشه قابل مشاهده در حالت فعال */
    visibility: visible; /* همیشه قابل مشاهده در حالت فعال */
    background-color: #f8f9fa; /* رنگ پس زمینه متفاوت در موبایل */
    width: 100%; /* عرض کامل */
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin-top: 0.25rem;
    border-radius: 0.25rem;
  }

  .nav-item.group .dropdown-menu.active {
    display: block; /* نمایش داده می شود */
  }

  /* استایل های مربوط به چرخش آیکون در موبایل */
  .nav-item.group .nav-link.open .svg-chevron-down {
    transform: rotate(180deg);
  }
}
.domain-extensions {
  display: flex; /* فعال کردن Flexbox */
  justify-content: center; /* وسط‌چین کردن آیتم‌ها در صورت نیاز */
  flex-wrap: wrap; /* اجازه ندهد آیتم‌ها از صفحه خارج شوند و به خط بعد بروند */
  margin-top: 20px; /* فاصله از اینپوت جستجو */
  border: 1px solid #eee; /* خط جداکننده کمرنگ برای کل باکس */
  padding: 15px;
  border-radius: 8px;
  background-color: #f9f9f9; /* رنگ پس‌زمینه کمرنگ */
}

/* استایل برای هر آیتم پسوند دامنه */
.extension-item {
  display: flex; /* فعال کردن Flexbox برای هر آیتم */
  align-items: center; /* هم‌تراز کردن عمودی متن */
  margin: 5px 15px; /* فاصله بین آیتم‌ها */
  padding: 8px 0; /* فاصله عمودی داخلی */
  border-bottom: 1px dashed #ddd; /* خط جداکننده کمرنگ زیر هر آیتم */
  white-space: nowrap; /* جلوگیری از شکستن خط داخل یک آیتم */
}

/* آخرین آیتم نباید خط جداکننده داشته باشد */
.extension-item:last-child {
  border-bottom: none;
}

/* استایل برای نام پسوند دامنه */
.domain-name {
  font-weight: bold;
  margin-right: 8px; /* فاصله بین نام پسوند و قیمت */
  color: #333;
}

/* استایل برای قیمت دامنه */
.domain-price {
  font-size: 0.9em;
  color: #666;
}
