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

:root{

   /* رنگ های اصلی */

--background-color:#0F172A;     /* رنگ اصلی پس زمینه  */
--card-color:#1E293B;           /* رنگ مخصوص کارت ها  */
--color-primary: #00F5FF;       /* رنگ اصلی برند (مثلا برای دکمه‌ها و لینک‌ها) */

/* رنگ های شفاف */
--color-half: #185262;       /* با شفافییت پایین */
--header-gradiant: #0f172a75;       /* با شفافییت پایین */

/* رنگ های فرعی */

--white-color:#FEFEFE;     /* رنگ سفید برای متن ها  */
--dark-color:#0F172A;      /* رنگ تیره برای متن ها*/
--gray-color:#57667D;      /* رنگ تیره برای متن ها*/
--logout-color:#F87171;         /* رنگ دکمه های حذف یا خروج */
--yellow-color-half:#d99e0971;         /* رنگ دکمه های ریپورت */
--yellow-color:#D99F09;         /* رنگ دکمه های ریپورت */

/* رنگ های ثانویه برای داشبورد کاربر */
--sidebar-hover-color:#232E3F;            /* رنگ پس زمینه لینک های سایدبار در حالت فعال */
--button-primary-hover:#ffcf6b;           /* رنگ هاور دکمه اصلی */
--danger-surface:rgba(255, 90, 90, 0.2);  /* پس زمینه دکمه های خطر */
--danger-surface-hover:rgba(255, 90, 90, 0.32);
--danger-text:#ff7d7d;                    /* متن حالت خطر */
--danger-text-strong:#ff8b8b;             /* متن خطا در پیام ها */
--success-text:#7adfa6;                   /* متن حالت موفق */
--team-picture-button:#965151;            /* رنگ دکمه انتخاب تصویر تیم */
--accent-secondary:#8961FF;               /* رنگ فرعی برای صفحات تیکت */
--accent-secondary-05:rgba(137, 97, 255, 0.05);
--accent-secondary-15:rgba(137, 97, 255, 0.15);
--accent-secondary-20:rgba(137, 97, 255, 0.2);
--accent-secondary-35:rgba(137, 97, 255, 0.35);
--accent-secondary-40:rgba(137, 97, 255, 0.4);
--accent-secondary-45:rgba(137, 97, 255, 0.45);

/* رنگ های ویژه هشدار */
--alert-border-error:#e74c3c;
--alert-border-success:#2ecc71;
--alert-border-info:#3498db;


/* رنگ بوردر */

--primary-border:var(--color-primary);             /* رنگ بوردر درحالت انتخاب با , رنگ اصلی*/
--border-color:#374151;                          /* رنگ بوردر خاکستری برای حالت های غیر انتخاب*/

/* رنگ سایه ها */

--primary-color-shadow: #00f7ff49 ;       /* drop-shadow با رنگ اصلی*/
--shadow-strong: rgba(0, 0, 0, 0.25);
--shadow-medium: rgba(0, 0, 0, 0.18);
--shadow-soft: rgba(0, 0, 0, 0.15);
--shadow-elevated: rgba(0,0,0,0.3);

/* گرادیانت */

--gradient-smooth-fade: linear-gradient(
    to top,
    rgb(var(--background-color)),             /* رنگ کامل در پایین */
    rgba(var(--background-color), 0)          /* همان رنگ با شفافیت کامل در بالا */
  );

/* overlay */

--overlay-color:rgba(0, 0, 0, 0.3);
--overlay-medium:rgba(0, 0, 0, 0.5);
--overlay-strong:rgba(0, 0, 0, 0.6);
--overlay-bold:rgba(0, 0, 0, 0.7);


/* discord bg color */
--discord-bg:#811CDA;
--red-color:#C97878;
--green-color:#82E995;


--shadow:#0000000d;

/* رنگ های شفاف پایه */
--surface-tint-02:rgba(255, 255, 255, 0.02);
--surface-tint-03:rgba(255, 255, 255, 0.03);
--surface-tint-04:rgba(255, 255, 255, 0.04);
--surface-tint-05:rgba(255, 255, 255, 0.05);
--surface-tint-06:rgba(255, 255, 255, 0.06);
--surface-tint-08:rgba(255, 255, 255, 0.08);
--surface-tint-10:rgba(255, 255, 255, 0.10);
--surface-tint-12:rgba(255, 255, 255, 0.12);
--surface-tint-15:rgba(255, 255, 255, 0.15);
--surface-tint-16:rgba(255, 255, 255, 0.16);
--surface-tint-18:rgba(255, 255, 255, 0.18);
--surface-tint-20:rgba(255, 255, 255, 0.20);
--surface-tint-25:rgba(255, 255, 255, 0.25);
--surface-tint-35:rgba(255, 255, 255, 0.35);

/* مقادیر کمکی */
--background-tint-60:rgba(15, 23, 42, 0.6);
--color-primary-60:rgba(0, 245, 255, 0.6);
--color-primary-18:rgba(0, 245, 255, 0.18);
--color-primary-90:rgba(0, 245, 255, 0.9);
--color-primary-55:rgba(0, 245, 255, 0.55);
--color-primary-40:rgba(0, 245, 255, 0.4);
--color-primary-30:rgba(0, 245, 255, 0.3);
--color-primary-20:rgba(0, 245, 255, 0.2);
--color-primary-15:rgba(0, 245, 255, 0.15);
--color-primary-14:rgba(0, 245, 255, 0.14);
--file-button-hover:rgba(45, 51, 82, 0.95);
--file-button-focus:rgba(137, 97, 255, 0.4);
--disabled-button-bg:rgba(255,255,255,0.15);
--disabled-button-text:rgba(255,255,255,0.6);
--message-bg:rgba(255,255,255,0.05);
--message-border:rgba(255,255,255,0.06);
--shadow-deep:rgba(0, 0, 0, 0.35);
--background-overlay-45:rgba(15, 17, 29, 0.45);
--background-overlay-70:rgba(20, 23, 40, 0.7);
--background-overlay-85:rgba(16, 18, 30, 0.85);
--background-overlay-85-alt:rgba(14, 17, 31, 0.85);
--background-overlay-70-deep:rgba(5, 7, 15, 0.7);
--card-overlay-65:rgba(24, 29, 47, 0.65);
--card-overlay-90:rgba(24, 29, 47, 0.9);
--card-overlay-90-alt:rgba(30, 34, 58, 0.9);
--card-overlay-95:rgba(28, 31, 52, 0.95);
--card-overlay-98:rgba(26, 29, 49, 0.98);
--text-white-70:rgba(255,255,255,0.7);
--text-white-80:rgba(255,255,255,0.8);
--text-white-85:rgba(255,255,255,0.85);
--text-white-90:rgba(255,255,255,0.9);
--text-secondary-accent:rgba(218, 200, 255, 0.95);


}







/* کد های اسکرول بار */

/* برای Chrome، Edge و Safari */
::-webkit-scrollbar {
  width: 5px; /* عرض عمودی */
  height: 5px; /* ارتفاع افقی */
}

::-webkit-scrollbar-track {
  background:transparent; /* رنگ پس‌زمینه‌ی track */
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary-border); /* رنگ اسکرول */
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body{
  background-color: var(--background-color);
}

.container{
  max-width: 1400px;
  margin: 20px auto;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill , minmax(406px , 406px));
  gap: 50px;
  width: 1350px;
  width: 100%;
  justify-content: center;
  margin: 50px auto;

}
.product-section{
  overflow:hidden ;
}

/* اینجا مربوط به بار جستجو و فیلتر لینک هستش */


.search_bar_coontainer{
  display: flex;
  align-items: center;
  justify-content: start;
  max-width: 1400px;
  margin: 10px auto;
  padding: 0px 25px;
  direction: rtl;
  column-gap: 15px;

  
  
}

.filters_link{
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 15px;
}

.filters_link a{ 
  color: var(--white-color);
  font-size: 14px;
  font-weight: 300;
  opacity: 50%;
  transition: 0.2s ease;

}

.filters_link a:hover{
  opacity: 1;

}

.search_bar{
  background-color: var(--border-color);
  border-radius: 100px;
  border: none;
  width: 210px;
  height: 30px;
  display: flex;
  align-items: center;
  direction: ltr;
  justify-content: center;
  padding: 2px 10px ;
  opacity: 50%;

}

/* استایل کانتینر اصلی جستجو */
.search-container {
  display: flex;
  align-items: center; /* تراز عمودی آیکون و اینپوت در وسط */
  justify-content: center;
  

}

/* استایل آیکون ذره‌بین */
.search-icon {
  color: var(--white-color);
  width: 20px;
  height: 20px;
}

/* استایل فیلد ورودی متن */
.search-input {
  flex-grow: 1; 
  background: transparent; 
  border: none; 
  outline: none; 
  color: var(--white-color);
  font-size: 16px;
  text-align: right; 
  margin-right: 10px; 
  direction: rtl;
  font-size: 12px;


}

/* استایل متن نمونه (Placeholder) */
.search-input::placeholder {
  color: var(--white-color);
  opacity: 0.8; 
  font-weight: 300;
  font-size: 12px;
}

a{
  text-decoration: none;
}


/* بخش مربوط به لیدر بورد 3نفر برتر  */





.home_leaderboard{

  max-width: 1400px;
  display: grid;
  margin: 50px auto;
  padding: 0px 25px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
  justify-content: space-between;
  gap: 58px;


}
.leaderboard_item{
  height: 180px;
  border: 0.5px solid var(--primary-border);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
  padding: 30px;
  width: 100%;
  margin: 0px auto;
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  justify-content: center;

  


}
.leaeder_profile{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.profile_img{
  min-width: 80px;
  min-height: 80px;
  max-width: 80px;
  max-height: 80px;
}
.profile_img img{
  width: 100%;
  height: 100%;
  border-radius: 100px;
  border: 0.5px solid var(--primary-border);

}
.user_name {
  font-size: 25px;
  font-weight: bold;
  color: var(--white-color);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user_rank{
  min-width: 30px;
  min-height: 30px;
  max-width: 30px;
  max-height: 30px;
  border-radius: 100px;
  background-color: var(--primary-border);
  color: var(--dark-color);
  font-size: 20px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  line-height: 1.5;
  text-align: center;
  padding-top: 2px;
}
.leader_info{
  direction: rtl;
  display: flex;
  align-items: center;
  justify-content: start;
  color: var(--white-color);
  font-weight: normal;
  font-size: 14px;
}

.leader_info:first-child {
  color: var(--color-primary);
}

.leaeder_profile_information{
  display: flex;
  margin-top: 15px;
  align-items: center;
  justify-content: space-between;
  

}








/* کد های مربوط به اطلاعات کلی سایت برای کاربران در قسمت بالاتر از فوتر */

.web_info{
  max-width: 1400px;
  display: grid;
  margin: 50px auto;
  padding: 0px 25px;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  align-items: center;
  justify-content: space-between;
  gap: 58px;



}
.web_info_item{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 170px;
  border-radius: 10px;
  color: var(--color-primary);
  display: grid;
  align-items: center;
  text-align: center;
  padding: 40px ;

}
.web_info_item_data{
  font-size: 40px;
  font-weight: bolder;
}
.web_info_item_titr{
  font-size: 16px;
  font-weight: 300;
}


.section_title{
  text-align: center;
  font-size: 30px;
  font-weight: 300;
  color: var(--white-color);
}
.section_showALL{
  width: 250px;
  height: 50px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: var(--card-color);
  text-align: center;
  margin: 10px auto;
  display: flex;
  justify-content: center;
  align-items: center;

}

.section_showALL{
  text-decoration: none;
  color: var(--white-color);
  font-size: 16px;
  font-weight: normal;
  padding: 20px 80px;
  cursor: pointer;
}
.section_showALL a{
  text-decoration: none;
  color: var(--white-color);
  font-size: 16px;
  font-weight: normal;
}


.section_showALL:hover{
  border: 1px solid var(--primary-border);
  transition: 0.5s ease-in ;

}

.section_showALL:hover , .section_showALL a:hover{
  color: var(--color-primary);
  transition: 0.5s ease-in ;


}

.product-section--stats{
  direction: rtl;
}

.stats-grid{
  width: 100%;
  max-width: 1100px;
  margin: 32px auto 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  align-items: center;
  justify-items: center;
  justify-content: center;
  padding: 0 12px;
}

.stat-card{
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 0;
  text-align: center;
}

.stat-card__icon{
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card__icon img{
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.stat-card__value{
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white-color);
  line-height: 1.2;
  font-feature-settings: "tnum";
}

.stat-card__label{
  font-size: 1rem;
  color: var(--text-white-80);
  font-weight: 400;
}

.stat-card--loading .stat-card__value{
  position: relative;
  color: transparent;
}

.stat-card--loading .stat-card__value::before{
  content: "";
  display: block;
  width: 80%;
  height: 22px;
  border-radius: 999px;
  margin: 0 auto;
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.05) 100%);
  animation: shine 1.4s ease-in-out infinite;
}

.stat-card--loading .stat-card__label{
  opacity: 0.55;
}

.stat-card--error .stat-card__value,
.stat-card--error .stat-card__label{
  color: var(--danger-text-strong);
}

.stat-card__error-text{
  font-size: 0.95rem;
  color: var(--danger-text-strong);
  font-weight: 400;
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 8px;
}

@keyframes shine{
  0%{ transform: translateX(-35%); opacity: 0.4; }
  50%{ transform: translateX(0%); opacity: 1; }
  100%{ transform: translateX(55%); opacity: 0.25; }
}
section{
margin-top: 100px;


}


.eror{
  text-align: center;
  color: var(--white-color) ;
  font-weight: 300;
  font-size: 20px;
  margin: 0px auto;
  width: 1350px;  
}


/* کل پاپ‌آپ (پوشش پس‌زمینه) */
.result-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* نیمه شفاف */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* محتوای پاپ‌آپ */
.result-popup .popup-content {
  background-color: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  position: relative;
  text-align: center;
}

/* دکمه بستن */
.result-popup .close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: color 0.2s;
}

.result-popup .close-popup:hover {
  color: #ff0000;
}

/* تیتر پاپ‌آپ */
.result-popup h2 {
  margin-bottom: 15px;
  font-size: 22px;
}

/* متن محتوا */
.result-popup p {
  font-size: 16px;
  line-height: 1.5;
}

/* ---------- Page Skeleton (Home) ---------- */
.page-skeleton {
position: fixed;
inset: 0;
z-index: 999;
background: var(--background-color);
overflow-y: auto;
opacity: 1;
transition: opacity 240ms ease;
direction: rtl;
}
.page-skeleton::-webkit-scrollbar {
display: none;
} 



.page-skeleton.is-hidden {
opacity: 0;
visibility: hidden;
pointer-events: none;
}

.page-skeleton__scroll {
min-height: 100vh;
scrollbar-width: none;
}

/* ---------- Skeleton Lines ---------- */
.skeleton-line,
.skeleton-block {
position: relative;
overflow: hidden;
display: block;
background-color: var(--card-color);
border-radius: 8px;
}

.skeleton-line {
height: 14px;
margin-bottom: 8px;
background-color: var(--background-color);
}

/* Shared Shine Effect */
.skeleton-line::after,
.skeleton-block::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(90deg,
  rgba(255, 255, 255, 0) 0%,
  rgba(255, 255, 255, 0.12) 50%,
  rgba(255, 255, 255, 0) 100%);
animation: skeleton-shimmer 1.4s linear infinite;
}

@keyframes skeleton-shimmer {
0% { transform: translateX(-100%); }
100% { transform: translateX(100%); }
}

/* ---------- Layout ---------- */
.home-skeleton__container {
max-width: 1400px;
padding: 24px 25px 48px;
margin: 0 auto;
display: grid;
gap: 28px;
}

.home-skeleton__hero {
display: grid;
grid-template-columns: 3fr 1fr;
gap: 20px;
margin-top: 35px;
}

.home-skeleton__hero-banner {
min-height: 520px;
padding: 24px;
display: grid;
align-content: end;
gap: 10px;
}

.home-skeleton__hero-list {
display: grid;
gap: 10px;
height: 100%;
}

.home-skeleton__section-title {
width: 220px;
height: 28px;
margin-inline: auto;
}

.home-skeleton__cards,
.home-skeleton__tournaments {
display: grid;
gap: 20px;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.home-skeleton__cards .skeleton-block {
height: 180px;
}

.home-skeleton__tournament {
min-height: 280px;
padding: 20px;
display: grid;
gap: 10px;
}

/* ---------- Header (Updated Version You Provided) ---------- */
.home-skeleton__header {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: 16px;
}

.home-skeleton__logo {
width: 150px;
height: 50px;
}

.home-skeleton__nav {
display: flex;
gap: 1px;
max-width: 400px;
}

.home-skeleton__nav .skeleton-block {
width: 100px;
height: 24px;
}

.home-skeleton__actions {
display: grid;
grid-auto-flow: column;
justify-self: end;
gap: 10px;
}

.home-skeleton__actions .skeleton-block {
width: 40px;
height: 40px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
.home-skeleton__container { padding-inline: 18px; }
.home-skeleton__hero { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
.home-skeleton__hero-banner { min-height: 360px; }
}

@media (max-width: 720px) {
.home-skeleton__cards,
.home-skeleton__tournaments {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.home-skeleton__section-title { width: 180px; }
.home-skeleton__nav { display: none !important; }

.home-skeleton__header {
  grid-template-columns: auto 1fr ;

}
}

@media (max-width: 540px) {
.home-skeleton__cards,
.home-skeleton__tournaments { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
.leaderboard_item {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.user_name { font-size: 1.4rem; }
}


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

:root{

   /* رنگ های اصلی */

--background-color:#0F172A;     /* رنگ اصلی پس زمینه  */
--card-color:#1E293B;           /* رنگ مخصوص کارت ها  */
--color-primary: #00F5FF;       /* رنگ اصلی برند (مثلا برای دکمه‌ها و لینک‌ها) */

/* رنگ های شفاف */
--color-half: #185262;       /* با شفافییت پایین */
--header-gradiant: #0f172a75;       /* با شفافییت پایین */

/* رنگ های فرعی */

--white-color:#FEFEFE;     /* رنگ سفید برای متن ها  */
--dark-color:#0F172A;      /* رنگ تیره برای متن ها*/
--gray-color:#57667D;      /* رنگ تیره برای متن ها*/
--logout-color:#F87171;         /* رنگ دکمه های حذف یا خروج */
--yellow-color-half:#d99e0971;         /* رنگ دکمه های ریپورت */
--yellow-color:#D99F09;         /* رنگ دکمه های ریپورت */

/* رنگ های ثانویه برای داشبورد کاربر */
--sidebar-hover-color:#232E3F;            /* رنگ پس زمینه لینک های سایدبار در حالت فعال */
--button-primary-hover:#ffcf6b;           /* رنگ هاور دکمه اصلی */
--danger-surface:rgba(255, 90, 90, 0.2);  /* پس زمینه دکمه های خطر */
--danger-surface-hover:rgba(255, 90, 90, 0.32);
--danger-text:#ff7d7d;                    /* متن حالت خطر */
--danger-text-strong:#ff8b8b;             /* متن خطا در پیام ها */
--success-text:#7adfa6;                   /* متن حالت موفق */
--team-picture-button:#965151;            /* رنگ دکمه انتخاب تصویر تیم */
--accent-secondary:#8961FF;               /* رنگ فرعی برای صفحات تیکت */
--accent-secondary-05:rgba(137, 97, 255, 0.05);
--accent-secondary-15:rgba(137, 97, 255, 0.15);
--accent-secondary-20:rgba(137, 97, 255, 0.2);
--accent-secondary-35:rgba(137, 97, 255, 0.35);
--accent-secondary-40:rgba(137, 97, 255, 0.4);
--accent-secondary-45:rgba(137, 97, 255, 0.45);

/* رنگ های ویژه هشدار */
--alert-border-error:#e74c3c;
--alert-border-success:#2ecc71;
--alert-border-info:#3498db;


/* رنگ بوردر */

--primary-border:var(--color-primary);             /* رنگ بوردر درحالت انتخاب با , رنگ اصلی*/
--border-color:#374151;                          /* رنگ بوردر خاکستری برای حالت های غیر انتخاب*/

/* رنگ سایه ها */

--primary-color-shadow: #00f7ff49 ;       /* drop-shadow با رنگ اصلی*/
--shadow-strong: rgba(0, 0, 0, 0.25);
--shadow-medium: rgba(0, 0, 0, 0.18);
--shadow-soft: rgba(0, 0, 0, 0.15);
--shadow-elevated: rgba(0,0,0,0.3);

/* گرادیانت */

--gradient-smooth-fade: linear-gradient(
    to top,
    rgb(var(--background-color)),             /* رنگ کامل در پایین */
    rgba(var(--background-color), 0)          /* همان رنگ با شفافیت کامل در بالا */
  );

/* overlay */

--overlay-color:rgba(0, 0, 0, 0.3);
--overlay-medium:rgba(0, 0, 0, 0.5);
--overlay-strong:rgba(0, 0, 0, 0.6);
--overlay-bold:rgba(0, 0, 0, 0.7);


/* discord bg color */
--discord-bg:#811CDA;
--red-color:#C97878;
--green-color:#82E995;


--shadow:#0000000d;

/* رنگ های شفاف پایه */
--surface-tint-02:rgba(255, 255, 255, 0.02);
--surface-tint-03:rgba(255, 255, 255, 0.03);
--surface-tint-04:rgba(255, 255, 255, 0.04);
--surface-tint-05:rgba(255, 255, 255, 0.05);
--surface-tint-06:rgba(255, 255, 255, 0.06);
--surface-tint-08:rgba(255, 255, 255, 0.08);
--surface-tint-10:rgba(255, 255, 255, 0.10);
--surface-tint-12:rgba(255, 255, 255, 0.12);
--surface-tint-15:rgba(255, 255, 255, 0.15);
--surface-tint-16:rgba(255, 255, 255, 0.16);
--surface-tint-18:rgba(255, 255, 255, 0.18);
--surface-tint-20:rgba(255, 255, 255, 0.20);
--surface-tint-25:rgba(255, 255, 255, 0.25);
--surface-tint-35:rgba(255, 255, 255, 0.35);

/* مقادیر کمکی */
--background-tint-60:rgba(15, 23, 42, 0.6);
--color-primary-60:rgba(0, 245, 255, 0.6);
--color-primary-18:rgba(0, 245, 255, 0.18);
--color-primary-90:rgba(0, 245, 255, 0.9);
--color-primary-55:rgba(0, 245, 255, 0.55);
--color-primary-40:rgba(0, 245, 255, 0.4);
--color-primary-30:rgba(0, 245, 255, 0.3);
--color-primary-20:rgba(0, 245, 255, 0.2);
--color-primary-15:rgba(0, 245, 255, 0.15);
--color-primary-14:rgba(0, 245, 255, 0.14);
--file-button-hover:rgba(45, 51, 82, 0.95);
--file-button-focus:rgba(137, 97, 255, 0.4);
--disabled-button-bg:rgba(255,255,255,0.15);
--disabled-button-text:rgba(255,255,255,0.6);
--message-bg:rgba(255,255,255,0.05);
--message-border:rgba(255,255,255,0.06);
--shadow-deep:rgba(0, 0, 0, 0.35);
--background-overlay-45:rgba(15, 17, 29, 0.45);
--background-overlay-70:rgba(20, 23, 40, 0.7);
--background-overlay-85:rgba(16, 18, 30, 0.85);
--background-overlay-85-alt:rgba(14, 17, 31, 0.85);
--background-overlay-70-deep:rgba(5, 7, 15, 0.7);
--card-overlay-65:rgba(24, 29, 47, 0.65);
--card-overlay-90:rgba(24, 29, 47, 0.9);
--card-overlay-90-alt:rgba(30, 34, 58, 0.9);
--card-overlay-95:rgba(28, 31, 52, 0.95);
--card-overlay-98:rgba(26, 29, 49, 0.98);
--text-white-70:rgba(255,255,255,0.7);
--text-white-80:rgba(255,255,255,0.8);
--text-white-85:rgba(255,255,255,0.85);
--text-white-90:rgba(255,255,255,0.9);
--text-secondary-accent:rgba(218, 200, 255, 0.95);


}







/* کد های اسکرول بار */

/* برای Chrome، Edge و Safari */
::-webkit-scrollbar {
  width: 5px; /* عرض عمودی */
  height: 5px; /* ارتفاع افقی */
}

::-webkit-scrollbar-track {
  background:transparent; /* رنگ پس‌زمینه‌ی track */
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary-border); /* رنگ اسکرول */
}
header {
    direction: rtl;
    background: linear-gradient(to bottom, var(--header-gradiant), #00000000);
  }

  a {
    text-decoration: none;
  }

  li {
    list-style: none;
  }

  .hidden {
    display: none !important;
  }

  .header_container {
    display: flex;
    justify-content: space-between;
    max-width: 1400px;
    height: 80px;
    margin: 0 auto;
    align-items: center;
    padding: 0px 25px;
  }

  .right_section {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .logo {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav {
    display: grid;
    align-items: center;
    justify-self: flex-end;
  }
  
  .nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-self: center;
  }
  
  .nav ul li a {
    color: var(--white-color);
    font-size: 16px;
    font-weight: normal;
    padding-bottom: 5px;
    position: relative;
  }
  
  .nav ul li a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    bottom: 0;
    right: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.2s ease-in-out;
  }
  
  .nav ul li a:hover {
    color: var(--color-primary);
  }
  
  .nav ul li a:hover::after {
    transform: scaleX(1);
  }
  
  .register {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
  }
  
  .login a {
    color: var(--white-color);
    font-size: 16px;
    font-weight: normal;
  }
  
  .signin {
    width: 100px;
    height: 32px;
    background-color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
  }
  
  .signin a {
    color: var(--dark-color);
    font-size: 16px;
    font-weight: normal;
  }
  
  .hidden_mobile_section {
    display: none;
  }
  
  .mobile_sidbar {
    display: none;
  }
  
  .mobile_overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--overlay-color);
    z-index: 499;
  }
  
  /* ===================== کاربر وارد شده ===================== */
  .user_islogin_to_register {
    display: flex;
    align-items: center;
    justify-content: space-between;
    justify-self: end;
    width: 240px;
  }
  
  .wallet_info {
    min-width: 140px;
    height: 32px;
    background-color: var(--card-color);
    color: var(--white-color);
    font-size: 12px;
    font-weight: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    gap: 10px;
  }
  
  .open_user_links {
    width: 32px;
    height: 32px;
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  
  /* ===================== منوی کاربر ===================== */
  .user-menu-wrapper {
    position: relative;
    display: inline-block;
  }
  
  .user_info_links {
    display: none;
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    gap: 0px;
    width: 165px;
    height: auto;
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 5px;
    padding-top: 10px;
    margin-top: 10px;
  }

  .user_info_links.is-open {
    display: flex;
    flex-direction: column;
  }

  .user-menu-avatar{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
  }

  .user-menu-name{
    color: var(--white-color);
    font-size: 14px;
    font-weight: 300;
    text-align: center;
    direction: ltr;
            /* برای یک سطر */
            white-space: nowrap; 
            overflow: hidden;
            text-overflow: ellipsis;
            max-width:150px;
  }
  
  .link_item.exit{
    background-color: #ff00001e;
  }

  .link_item.exit:hover{
    background-color: #ff000067;
  }
  
  .link_item {
    padding: 10px;
    border-radius: 5px;
    transition: 0.1s ease;
  }

  .link_item:hover{
    background-color: var(--border-color);
  }
  
  .link_item a {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
    color: var(--white-color);
    font-size: 14px;
  }
  
  /* ===================== نوتیفیکیشن ===================== */
  .notification_bar {
    position: relative;
    display: inline-block;
  }

  .notification {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .notification:hover,
  .notification:focus-visible {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 132, 0, 0.14);
  }

  .notification_pill {
    position: absolute;
    top: -6px;
    left: -4px;
    min-width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ff8400, #ff3d00);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    padding: 0 6px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  .notification_hover {
    position: absolute;
    transform: translateX(85%);
    top: 150%;
    width: 280px;
    min-height: 140px;
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: none;
    align-items: stretch;
    justify-content: center;
    padding: 14px;
    gap: 12px;
    z-index: 50;
    transition: opacity 0.3s ease;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }

  .notification_hover.is-open {
    display: flex;
    flex-direction: column;
  }

  .notification_title {
    text-align: center;
    color: var(--white-color);
    font-size: 14px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .notification_title_text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .notification_refresh {
    background: linear-gradient(135deg, #ff8400, #ff6a00);
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 24px rgba(255, 132, 0, 0.25);
  }

  .notification_refresh:hover,
  .notification_refresh:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(255, 132, 0, 0.32);
  }

  .notification_status {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 6px;
    color: var(--white-color);
    font-size: 13px;
  }

  .notification_status--loading {
    gap: 10px;
  }

  .notification_skeleton {
    display: grid;
    gap: 6px;
  }

  .skeleton_line {
    height: 10px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.18), rgba(255,255,255,0.08));
    background-size: 200% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
  }

  .skeleton_line--short { width: 40%; }

  @keyframes shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
  }

  .notification_list {
    display: grid;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
  }

  .notification_item {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--white-color);
    transition: border-color 0.2s ease, background-color 0.2s ease;
  }

  .notification_item:hover {
    border-color: var(--color-primary);
    background-color: rgba(255, 132, 0, 0.06);
  }

  .notification_meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #cbd5e1;
  }

  .notification_username { font-size: 12px; }

  .user_message { font-size: 13px; line-height: 1.6; }

  .sea_all_notifacation {
    font-size: 12px;
    text-align: center;
    padding-top: 6px;
    border-top: 1px solid var(--border-color);
  }

  .sea_all_notifacation a {
    color: var(--white-color);
    font-weight: 400;
  }
  
  /* ===================== حالت ریسپانسیو ===================== */
  @media (max-width: 1200px) {
    .header_container {
      padding: 0px 15px;
    }
    .nav ul {
      gap: 20px;
    }
    .nav ul li a {
      font-size: 14px;
    }
  }

  @media (max-width: 900px) {
    .header_container {
      display: none;
    }
  
    .header_hover_section {
      display: none;
    }
  
    .hidden_mobile_section {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0px 30px;
      height: 90px;
    }
  
    .menu_and_register {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 22px;
    }
  
    .hidden_mobile_section button {
      background-color: transparent;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: start;
    }
  
    .hidden_mobile_section button img {
      width: 24px;
      height: 24px;
    }
  
    .mobile_overlay {
      position: fixed;
      inset: 0;
      width: 100vw;
      height: 100vh;
    }
  
    .mobile_sidbar {

      display: grid;
      grid-template-rows: repeat(12, 1fr);
      justify-content: space-between; /* تقسیم بهتر بخش بالا و پایین */
      align-items: center;
      padding: 40px 20px;
      width: 310px;
      height: 100dvh;
      background-color: var(--background-color);
      position: fixed;
      top: 0;
      right: -310px;
      visibility: hidden;
      transition: right 0.4s ease-in-out, visibility 0.4s;
      z-index: 500;
      overflow-y: auto; /* اگر محتوا زیاد شد اسکرول بخوره */
      gap: 30px;
    }

    .mobile_sidbar.active {
      right: 0px;
      visibility: visible;
      overflow: hidden;
    }
  
    .close {
      position: absolute;
      top: 30px;
      left: 30px;
    }
  
    .close_btn {
      background-color: transparent;
      border: none;
      cursor: pointer;
    }
  
    .user_info_islogin {
      display: grid;
      grid-template-columns: repeat(3, auto);
      align-items: start;
      justify-content: space-between;
      width: 250px;
      grid-row: 2/3;
    }
  
    .edit {
      justify-self: start;
      cursor: pointer;
    }
  
    .user_name_phone {
      display: grid;
      align-items: center;
      gap: 5px;
      text-align: left;
      color: var(--white-color);
      font-weight: 500;
      font-size: 1rem;
    }
  
    .user_info_name {
      font-size: 1rem;
    }
  
    .user_info_phone {
      direction: ltr;
      font-size: 0.8+rem;
    }
  
    .user_profile {
      width: 50px;
      height: 50px;
      background-color: var(--white-color);
      border-radius: 999px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  
    hr {
      width: 100%;
      border: 0.5px solid var(--border-color);
    }
  
    /* وقتی کاربر وارد نشده */
    .user_info_isnontlogin {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background-color: var(--card-color);
      height: 80px;
      width: 250px;
      padding: 7px 0px;
      gap: 12px;
      border-radius: 10px;
      grid-row: 2/3;
    }
  
    .please_login_title {
      color: var(--white-color);
      font-size: 12px;
      font-weight: normal;
    }
  
    .login_signin_links {
      display: flex;
      align-items: center;
      justify-content: center;
      column-gap: 10px;
    }
  
    .login2_btn {
      width: 100px;
      height: 27px;
      font-size: 12px;
      border-radius: 5px;
      border: none;
      background-color: var(--color-primary);
      color: var(--dark-color);
      cursor: pointer;
    }
  
    .signin_btn {
      width: 100px;
      height: 27px;
      font-size: 12px;
      border-radius: 5px;
      border: 1px solid var(--white-color);
      cursor: pointer;
      background-color: transparent;
      color: var(--white-color);
    }
  
    .sidebar_links {
      display: flex;
      flex-direction: column;
      align-items: start;
      justify-content: space-between;
      margin-right: 20px;
      margin-top: 16px;
      grid-row: 4/11;
      gap: 20px;
    }
  
    .sidebar_links_top {
      display: flex;
      align-items: center;
      justify-content: start;
    }
  
    .sidebar_links_top ul {
      display: flex;
      flex-direction: column;
      gap: 20px;
      justify-content: start;
      margin-top: -30px;

    }
    .sidebar_links_top ul li{
      height: 30px;
    }
  
    .sidebar_links_top ul li a {
      font-size: 1rem;
      font-weight: normal;
      color: var(--white-color);
    }
  
    .exit_account {
      width: 100%;
      height: 40px;
      background-color: var(--logout-color);
      color: var(--white-color);
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
      margin-bottom: 20px;
    }
  
    .exit_account a {
      color: var(--white-color);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 10px 80px;
    }



    .sidebar_logo{
      display: flex;
      align-items: center;
      justify-content: center;
      grid-row: 12/13;

    }



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

footer{
    background-color: var(--card-color);
    width: 100%;
    /* ارتفاع ثابت حذف شد تا محتوا توی سایز کوچک له نشه */
    padding: 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer_container {
    max-width: 1400px;
    display: grid;
    margin: 0 25px;
    /* اصلاح برای ریسپانسیو */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: auto;
    direction: rtl;
    align-items: start;
    justify-content: center;
    gap: 20px;
}

/* اجازه کوچک شدن آیتم‌های گرید */
.footer_container > * {
    min-width: 0;
    min-inline-size: 0;
}

.footer_description{
    justify-self: start;
    color: var(--white-color);
}
.footer_title{
    font-size: 30px;
    font-weight: bold;
}
.footer_contant{
    font-size: 14px;
    font-weight: normal;
    line-height: 25px;
}
.quick_link{
    justify-self: center;
    display: grid;
    align-items: start;
    justify-content: space-between;
}

.quick_link ul{
    list-style: none;
}

.quick_link ul li{
    margin-top: 10px;
}
.quick_link ul li a{
    text-decoration: none;
    color: var(--white-color);
    font-size: 16px;
    font-weight: 300;
}
.contact_whith_us{
    justify-self: end;
    gap: 10px;
    display: grid;
}
.contact_whith_us_title{
    font-size: 16px;
    font-weight: bold;
    color: var(--white-color);
}
.social_mediya_icons{

}
.discord_link{
    max-width: 264px; /* تغییر از width به max-width */
    width: 100%; /* اجازه جمع شدن در گرید */
    height: 35px;
    background-color: var(--discord-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 3px;
}
.discord_link a{
    text-decoration: none;
    color: var(--white-color);
    font-size: 14px;
    font-weight: bold;
}

/* اصلاح grid-column برای سازگاری با هر تعداد ستون */
.footer_container hr{
    grid-column: 1 / -1;
    border: 1px solid var(--border-color);
}

.made_number{
    grid-column: 1 / -1;
    justify-self: start;
    align-items: end;
    color: var(--white-color);
    font-size: 14px;
    font-weight: normal;
}

@media (max-width:1300px) {
    .footer_container {
        max-width: 1400px;
        display: grid;
        margin: 0 25px;
        /* اصلاح برای ریسپانسیو */
        grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    }
}





@media (max-width: 1200px) {
    .footer_container {
        grid-template-columns: 1fr 1fr; /* یک ستون */

    }
    .footer_container > * {
        width: 100%; /* عرض کامل برای همه فرزندان */
    }
    .discord_link{
        max-width: 100%; /* تغییر از width به max-width */

    }

}


@media (max-width: 600px) {
    .footer_container {
        grid-template-columns: 1fr ; /* یک ستون */
    }
    }/* Alert/Toast CSS styles extracted from css/loby.css */

.alert_stack {
    position: fixed;
    top: 16px;
    right: 16px; /* For RTL layouts */
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Alert box */
.alert {
    min-width: 280px;
    max-width: 420px;
    background: var(--card-color);
    color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px 12px 40px;
    position: relative;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    direction: rtl;
}

.alert_title {
    font-weight: 700;
    margin-bottom: 6px;
}

.alert_msg {
    opacity: 0.9;
    font-size: 14px;
    line-height: 1.7;
}

.alert_actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.alert_btn {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--white-color);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}

.alert_btn:hover {
    background: rgba(255,255,255,0.05);
}

.alert_close {
    position: absolute;
    top: 6px;
    left: 8px; /* For RTL */
    background: transparent;
    border: none;
    color: var(--white-color);
    font-size: 20px;
    cursor: pointer;
}

/* Alert types */
.alert-error {
    border-right: 4px solid #e74c3c;
}

.alert-success {
    border-right: 4px solid #2ecc71;
}

.alert-info {
    border-right: 4px solid #3498db;
}

/* Inline app messages */
.app-message {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    background: rgba(15, 20, 35, 0.75);
    color: var(--white-color);
    direction: rtl;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.app-message__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.app-message__title {
    font-weight: 700;
    font-size: 16px;
}

.app-message__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    line-height: 1.8;
}

.app-message__hint {
    color: rgba(255, 255, 255, 0.85);
}

.app-message__steps {
    list-style: disc;
    padding-right: 18px;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.app-message--error {
    border-right: 4px solid #e74c3c;
}

.app-message--info {
    border-right: 4px solid #3498db;
}

.app-message--success {
    border-right: 4px solid #2ecc71;
}
/* 🎯 GRID LAYOUT */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: clamp(16px, 3vw, 48px);
    /* padding: 24px; */
    margin: 50px auto;
    max-width: 1400px;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  
  /* 🧱 CARD CONTAINER */
  .cart_container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--background-color) 0%, #1e293b 80%);
    transition: transform 0.25s ease, box-shadow 0.35s ease;
    padding: 16px;
    gap: 14px;
    box-sizing: border-box;
  }
  
  .cart_container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  }
  
  /* 🖼️ IMAGE */
  .cart_image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
  }
  
  .cart_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* 🔖 LABELS */
  .cart_countdown_game {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .cart_countdown,
  .cart_game_name {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
    color: var(--white-color);
    border-radius: 6px;
    font-size: 14px;
    height: 32px;
    min-width: 120px;
    padding: 0 8px;
    font-weight: 400;
  }
  .cart_countdown{
    direction: ltr;
  }
  
  .cart_countdown img {
    width: 17px;
    height: 17px;
    margin-right: 6px;
  }
  
  /* 🧩 CARD MIDDLE */
  .cart_middle {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--white-color);
    direction: rtl;
  }
  
  .cart_title {
    font-size: 16px;
    font-weight: 700;
  }
  
  .cart_date_time {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    font-size: 14px;
    font-weight: 300;
    opacity: 0.9;
    direction: ltr;
  }
  
  .cart_description {
    font-size: 14px;
    font-weight: 300;
    opacity: 0.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
  }
  
  /* ⚙️ CARD BOTTOM (دکمه‌ها همیشه کنار هم) */
  .cart_bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
    direction: rtl;
    width: 100%;
    height: 50px;
    position: relative;
  }
  
  /* 🎮 JOIN BUTTON */
  .cart_join {
    width: 70%;
    height: 100%;
    background-color: var(--background-color);
    opacity: 0.6;
    color: var(--white-color);
    font-size: 16px;
    font-weight: 400;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    text-align: center;
    padding-left: 50px;
    transition: color 0.2s ease, opacity 0.3s ease;
    position: absolute;
    overflow: hidden;
    right: 0px;
  }
  
  .cart_join:hover {
    color: var(--color-primary);
    opacity: 1;
  }
  
  .cart_join::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--color-primary);
    border-left: none;
    width: 0;
    right: 0;
    transition: width 0.4s ease;
    border-radius: 0 10px 10px 0;
  }
  
  .cart_join:hover::after {
    width: 100%;
    left: 0;
  }
  
  /* 💰 PRICE */
  .cart_price {
    width:  30%;
    height: 100%;
    width: 50%;
    background-color: var(--color-primary);
    color: var(--background-color);
    border-radius: 10px 10px 50px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    position: absolute;
    left: 0px;
  }
  
  /* 📱 RESPONSIVE */
  @media (max-width: 768px) {

  
    .cart_container {
      padding: 14px;
      gap: 12px;
    }
  
    .cart_bottom {
      height: 46px;
    }
  
    .cart_join,
    .cart_price {
      font-size: 14px;
      height: 46px;
    }
  }
  
  @media (max-width: 480px) {
    .cart_container {
      padding: 12px;
      gap: 10px;
    }
    .grid-container {
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      padding:  0px 10px;

    }
  
    .cart_bottom {
      gap: 8px;
      height: 44px;
    }
  
    .cart_join {
      padding-left: 30px;
      font-size: 13px;
    }
  
    .cart_price {
      font-size: 13px;
      border-radius: 8px 8px 30px 8px;
    }
  }
  .hero-slider {
    --hero-slider-interval: 6500ms;
    --hero-slider-transition-duration: 460ms;
    --hero-slider-progress-color: var(--color-primary-30);
    --hero-slider-progress-highlight: var(--color-primary-18);
    --hero-slider-ease: cubic-bezier(0.18, 0.77, 0.24, 1);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    max-width: 1400px;
    margin: 56px auto 40px;
    padding: 0 24px;
    direction: rtl;
}

.hero-slider__main {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 520px;
    background: var(--card-color);
    isolation: isolate;
}

.hero-slider__background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-slider__background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(127deg, rgba(15, 23, 42, 0.9) 12%, rgba(15, 23, 42, 0.35) 45%, rgba(15, 23, 42, 0.05) 100%);
    z-index: 2;
}

.hero-slider__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    opacity: 0;
    transition: opacity 1s var(--hero-slider-ease);
    filter: saturate(1.04);
    will-change: transform, opacity;
    z-index: 1;
}

.hero-slider__image.is-active {
    opacity: 1;
    animation: heroSlideKenBurns calc(var(--hero-slider-interval) * 1.05) ease-out forwards;
    z-index: 3;
}

.hero-slider__image.is-exit {
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.6s var(--hero-slider-ease), transform 0.6s var(--hero-slider-ease);
    animation: none;
}

@keyframes heroSlideKenBurns {
    from {
        transform: scale(1.08);
    }
    to {
        transform: scale(1.03);
    }
}


.hero-slider__content {
    position: relative;
    z-index: 4;
    height: 100%;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 20px;
    color: var(--white-color);
    transition: opacity var(--hero-slider-transition-duration) var(--hero-slider-ease), transform var(--hero-slider-transition-duration) var(--hero-slider-ease);
    will-change: opacity, transform;
}
.hero-slider__content::after{
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background:linear-gradient(to top , var(--background-color) , rgba(0, 0, 0, 0));
}


.hero-slider__content.is-transitioning-out {
    opacity: 0;
    transform: translateY(26px);
}

.hero-slider__content.is-transitioning-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-slider__badge {
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--color-primary-18);
    color: var(--color-primary);
    font-size: 14px;
    letter-spacing: 0.4px;
}

.hero-slider__badge[data-status="coming_soon"] {
    background: rgba(217, 159, 9, 0.18);
    color: var(--yellow-color);
}

.hero-slider__title {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.hero-slider__description {
    font-size: 16px;
    line-height: 1.7;
    max-width: 420px;
    color: var(--text-white-80);
    margin: 0;
}

.hero-slider__cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-slider__primary-btn {
    min-width: 190px;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    background: var(--color-primary);
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
    isolation: isolate;
}

.hero-slider__primary-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--color-primary);
    filter: blur(24px);
    opacity: 0.6;
    transform: translateY(6px) scale(0.96);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: -1;
    will-change: transform, opacity;
}

.hero-slider__primary-btn:hover {
    transform: translateY(-2px);
    will-change: transform;
}

.hero-slider__primary-btn:hover::after {
    opacity: 0.75;
    transform: translateY(2px) scale(1);
}

.hero-slider__primary-btn.disabled_btn,
.hero-slider__primary-btn.disabled_btn:hover {
    background: var(--disabled-button-bg);
    color: var(--disabled-button-text);
    cursor: default;
    transform: none;
}

.hero-slider__primary-btn.disabled_btn::after,
.hero-slider__primary-btn.disabled_btn:hover::after {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
}

.hero-slider__secondary-link {
    color: var(--text-white-85);
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.hero-slider__secondary-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--surface-tint-20);
    transition: transform 0.2s ease;
    transform-origin: right;
    transform: scaleX(0.4);
}

.hero-slider__secondary-link:hover::after {
    transform: scaleX(1);
}

.hero-slider__nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-slider__nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    border-radius: 16px;
    padding: 12px;
    background: var(--background-color);
    color: var(--text-white-80);
    direction: ltr;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: background 0.35s var(--hero-slider-ease), transform 0.35s var(--hero-slider-ease), box-shadow 0.35s var(--hero-slider-ease);
}

.hero-slider__nav-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.45s var(--hero-slider-ease);
    transform-origin: left;
    transform: scaleX(0);
    will-change: transform, opacity;
}

.hero-slider__nav-item::before {
    background-color: var(--card-color);
}



.hero-slider__nav-item:hover {
    background-color: var(--border  -color);

}

.hero-slider__nav-item:hover::before {
    opacity: 1;
}

.hero-slider__nav-item.is-active {
    z-index: 20;

}

.hero-slider__nav-item.is-active::before {
    opacity: 1;
    transform: scaleX(0);
    animation: heroSliderProgress 5s ease-in;

}

@keyframes heroSliderProgress {
0%{
    transform: scaleX(0);
}
100%{
    transform: scaleX(1);
}
}


.hero-slider__nav-item.is-active .hero-slider__nav-status {
    color: var(--color-primary);
}

.hero-slider__nav-item.is-active .hero-slider__nav-title {
    color: var(--white-color);
}

.hero-slider__nav-thumb img {
    transition: transform 0.45s var(--hero-slider-ease);
}

.hero-slider__nav-item:hover .hero-slider__nav-thumb img,
.hero-slider__nav-item.is-active .hero-slider__nav-thumb img {
    transform: scale(1.05);
}



.hero-slider__nav-thumb {
    /* flex: 0 0 72px; */
    height: 72px;
    width: 60px;

    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.hero-slider__nav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider__nav-info {
    display: grid;
    gap: 4px;
    text-align: left;
    margin-left: 10px;
}

.hero-slider__nav-status {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-white-70);
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.hero-slider__nav-status.is-coming-soon {
    color: var(--yellow-color);
}

.hero-slider__nav-title {
    font-size: 16px;
    font-weight: 600;
    color: inherit;
}

.hero-slider-mobile {
    display: none;
    margin: 0 auto 32px;
    padding: 0 16px;
    max-width: 720px;
}

.hero-slider-mobile__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.hero-slider-mobile__track::-webkit-scrollbar {
    display: none;
}

.hero-slider-mobile__slide {
    position: relative;
    flex: 0 0 82%;
    max-width: 440px;
    min-height: 450px;
    max-height: 450px;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    scroll-snap-align: center;
    background: var(--card-color);
    isolation: isolate;
}

.hero-slider-mobile__media {
    position: absolute;
    inset: 0;
}

.hero-slider-mobile__media picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slider-mobile__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider-mobile__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.92) 20%, rgba(15, 23, 42, 0.4) 55%, rgba(15, 23, 42, 0.08) 100%);
    z-index: 1;
}

.hero-slider-mobile__content {
    position: relative;
    z-index: 2;
    padding: 40px 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 16px;
    min-height: 420px;
    color: var(--white-color);
    direction: rtl;
}

.hero-slider-mobile__badge {
    align-self: flex-start;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--color-primary-18);
    color: var(--color-primary);
    font-size: 13px;
    letter-spacing: 0.4px;
}

.hero-slider-mobile__badge[data-status="coming_soon"] {
    background: rgba(217, 159, 9, 0.18);
    color: var(--yellow-color);
}

.hero-slider-mobile__title {
    margin: 0;
    font-size: clamp(22px, 6vw, 30px);
    font-weight: 700;
}

.hero-slider-mobile__description {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-white-80);
    max-width: 320px;
}

.hero-slider-mobile__cta {
    align-self: flex-start;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    background: var(--color-primary);
    color: var(--dark-color);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
    isolation: isolate;
}

.hero-slider-mobile__cta::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--color-primary);
    filter: blur(22px);
    opacity: 0.55;
    transform: translateY(6px) scale(0.96);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: -1;
    will-change: transform, opacity;
}

.hero-slider-mobile__cta.disabled_btn {
    background: var(--disabled-button-bg);
    color: var(--disabled-button-text);
    cursor: default;
}

.hero-slider-mobile__cta:hover {
    transform: translateY(-2px);
    will-change: transform;
}

.hero-slider-mobile__cta:hover::after {
    opacity: 0.75;
    transform: translateY(2px) scale(1);
}

.hero-slider-mobile__cta.disabled_btn::after,
.hero-slider-mobile__cta.disabled_btn:hover::after {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
}

.hero-slider-mobile__dots {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.hero-slider-mobile__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: var(--surface-tint-20);
    transition: background 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.hero-slider-mobile__dot.is-active {
    background: var(--color-primary);
    transform: scaleX(1.6);
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider__image,
    .hero-slider__nav-item,
    .hero-slider__nav-item::after,
    .hero-slider__nav-item::before,
    .hero-slider__content,
    .hero-slider__nav-thumb img {
        animation: none !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 1280px) {
    .hero-slider {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 16px;
    }

    .hero-slider__content {
        padding: 40px 40px;
    }
}

@media (max-width: 1100px) {
    .hero-slider {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-slider__nav {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(220px, 1fr);
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 8px;
        scrollbar-width: thin;
    }

    .hero-slider__nav::-webkit-scrollbar {
        height: 4px;
    }

    .hero-slider__nav::-webkit-scrollbar-thumb {
        background: var(--surface-tint-20);
        border-radius: 4px;
    }
}

@media (max-width: 900px) {
    .hero-slider {
        display: none;
    }

    .hero-slider-mobile {
        display: block;
    }
}

@media (max-width: 600px) {
    .hero-slider-mobile__slide {
        flex-basis: 100%;
    }

    .hero-slider-mobile__content {
        padding: 32px 24px;
        min-height: 450px;
    }
    .hero-slider-mobile__description{
        display: none;
    }
}
