@font-face {
  font-family: 'B_Ziba';
  src: url('fonts/B Ziba_0.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'badkh';
  src: url('fonts/persian-badkh@t1.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Vazir';
  src: url('fonts/Vazir.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
.custom-chart-font {
  font-family: 'B_Ziba', sans-serif;
}
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  position: fixed;
  touch-action: none;
  display: flex;
  flex-direction: column;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'B_Ziba', sans-serif;
  background: radial-gradient(circle,
    #1A202C 0%,
    #111418 40%,
    #000000 80%);
  overflow: hidden;
  scroll-behavior: smooth;
  transition: background 1.5s ease;
}



header {
  position: fixed;
  top: 20px;
  margin-left: 20px;
  display: flex;
  z-index: 1000;
  width: 100%;
}
main{
  margin-left: 70px;
}
.main-main {
  width: 100%;
  margin: 0 auto;
}
/* هر باکس جداگانه با استایل مستقل */




.eporod-logo {
  position: fixed;
  z-index: 10000;
  width: 40px;
  top: 40px;
  left: 30px;
  height: auto;
}












section {
  height: 100vh; /* ✅ هر بخش اندازه یک صفحه کامل */
  padding: 2rem;
  box-sizing: border-box;
  scroll-snap-align: start;

}

form {
  display: grid;
  gap: 1rem;
}

input, select {
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  direction: rtl;         /* جهت متن راست به چپ */
  text-align: right;      /* چینش متن از راست */
}


button {
  background-color: #003366;
  font-size: 1.3rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  padding: 0.2rem;
  color: white;
  cursor: pointer;
  margin-top: 15px;
  width: 110px;
}



#agentList {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 5px;
  background: #fafafa;
  max-width: 500px;
  margin-top: 20px;
  list-style-type: none;

}


#register, #register * {
  font-family: 'B_Ziba', sans-serif;
}

.spacer-50 {
  height: 50px;
}


#agentForm {
  display: grid;
  grid-template-columns: 1fr 1fr; /* دو ستون مساوی */
  gap: 1rem; /* فاصله بین فیلدها */
  max-width: 800px;
  margin: auto;
  direction: rtl;         /* جهت متن راست به چپ */
}

#agentForm button {
  grid-column: 2;             /* اگر می‌خوای فقط در ستون دوم باشه */
  width: 100px;               /* عرض دلخواه */
  height: 40px;               /* ارتفاع (برای کنترل عمودی) */
  font-size: 23px;            /* اندازه فونت */
  display: flex;              /* فعال کردن flex برای وسط‌چین کردن */
  align-items: center;        /* عمودی وسط */
  justify-content: center;    /* افقی وسط */
  justify-self: end;          /* چسباندن دکمه به انتهای ستون دوم */
}


#customerForm {
  display: grid;
  grid-template-columns: 1fr 1fr; /* دو ستون مساوی */
  gap: 1rem; /* فاصله بین فیلدها */
  max-width: 800px;
  margin: auto;
  margin-left: 20px;
}

#customerForm button {
  grid-column: 1;             /* اگر می‌خوای فقط در ستون دوم باشه */
  width: 100px;               /* عرض دلخواه */
  height: 40px;               /* ارتفاع (برای کنترل عمودی) */
  font-size: 23px;            /* اندازه فونت */
  display: flex;              /* فعال کردن flex برای وسط‌چین کردن */
  align-items: center;        /* عمودی وسط */
  justify-content: center;    /* افقی وسط */
  justify-self: start;          /* چسباندن دکمه به انتهای ستون دوم */
}


#customers, #customers * {
  font-family: 'B_Ziba', sans-serif;
}




/* لوگوی پروفایل مخفی در ابتدا */
#profileLogo {
  height: 40px;
  width: auto;
  margin-top: 0;
  right: 0;
  vertical-align: middle;
  display: none; /* اول مخفی */
  cursor: pointer;
  border: none;
  padding: 0;
  transition: transform 0.3s ease; /* حرکت نرم چرخش */
}


.profile-container {
  position: absolute;
  left: -1px;
  top: 205px;
  display: inline-block;
}

.profile-menu {
  display: none;
  position: absolute;
  top: 45px;
  left: -18px;
  background-color: rgb(255, 255, 255);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border-radius: 3px;
  list-style: none;
  padding: 5px 4px;
  margin: 0;
  width: 60px;
  z-index: 1000;
}

.profile-menu li {
  padding: 8px 16px;
  cursor: pointer;
}

.profile-menu li:hover {
  background-color: #f0f0f0;
}

.profile-menu a {
  text-decoration: none;
  color: black;
  display: block;
}


/* پس‌زمینه نیمه‌شفاف و بلور برای پنل تنظیمات */
.settings-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* ابتدا مخفی */
.settings-overlay.hidden {
  display: none;
}

.settings-panel {
  background: rgba(255, 255, 255, 0.1); /* پس‌زمینه نیمه‌شفاف */
  backdrop-filter: blur(15px) saturate(160%);
  -webkit-backdrop-filter: blur(15px) saturate(160%);
  border-radius: 12px;
  padding: 10px 30px;
  width: 80%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  height: 90%;
  overflow-y: auto;
  max-width: 700px;
  border: 1px solid rgba(255, 255, 255, 0.2); /* خط مرزی برای زیبایی بیشتر */
  color: #fff; /* در صورت نیاز برای متون روشن */
}


/* دکمه ضربدر بالای پنل */
.close-btn {
  position: relative;
  right: 15px;
  cursor: pointer;
  color: #333;
  margin-top: -20px;
  font-size: 4.5rem;


}
.close-btn:hover{
  color: rgb(255, 0, 0);
}



/* لیست گزینه‌های تنظیمات */
.settings-panel ul {
  padding-left: 20px;
  margin-top: 40px;
}

.settings-panel ul li {
  margin-bottom: 12px;
  font-size: 6px;
  color: #ffffff;
}

.settings-panel input[type="password"],
.settings-panel input[type="email"] {
  display: block;
  width: 100%;
  padding: 8px 10px;
  margin: 6px 0 12px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-family: 'B_Ziba', sans-serif;
  font-size: 1.4rem;

}

.settings-panel button {
  padding: 8px 16px;
  background-color: #007bff;
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'B_Ziba', sans-serif;
  transition: background-color 0.2s ease-in-out;
}

.settings-panel button:hover {
  background-color: #0056b3;
}

#closeSettingsBtn {
  background-color: #c92b2b;
  margin-left: 15px;
}

.settings-panel h4 {
  margin-bottom: 8px;
  font-size: 1.6rem;
}
.settings-panel {
  scrollbar-width: none; /* برای فایرفاکس */
  -ms-overflow-style: none; /* برای IE و Edge */
}

.settings-panel::-webkit-scrollbar {
  display: none; /* برای کروم و سافاری */
}


#calendar-container {
  position: fixed;
  top: 15rem;
  background: white;
  border: 1px solid #a1a1a1;
  width: 210px;
  z-index: 1000;
  display: none;
  border-radius: 10px 10px 0 0;
}



/* هدر تقویم */
.pd-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #4a90e2;
  color: white;
  padding: 1px 12px;
  border-radius: 10px 10px 0 0;
  font-weight: bold;
}


/* جدول روزهای هفته */
.pd-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  table-layout: fixed;
}

.pd-table thead th {
  padding: 2px 0;
  background: #f0f0f0;
  color: #555;
  font-weight: normal;
  border-bottom: 1px solid #ddd;
}

/* سلول های روز */
.pd-table tbody td {
  padding: 10px 0;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease;
  user-select: none;
}

/* روزهای فعال */
.pd-day:hover {
  background-color: #d6e4ff;
  border-radius: 4px;
}

/* روز انتخاب شده */
.pd-day.selected {
  background-color: #4a90e2;
  color: white;
  font-weight: bold;
  border-radius: 4px;
}

/* سلول های خالی */
.empty {
  background: #fafafa;
  cursor: default;
}

#academy {
  max-width: 800px;
  justify-content: center;
  margin: 0 auto;
}

#birthdate:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}



.pd-header select {
  font-size: 16px;
  padding: 1px 8px;
  margin: 0 4px;
  border: none;
  border-radius: 4px;
  background: white;
  color: #333;
  outline: none;
}


#pd-close {
  background: url('close.png') no-repeat center center;
  background-size: contain;
  border: none;
  cursor: pointer;
  margin-right: -10px;
  flex-shrink: 0;

}
#pd-close:hover {
  filter: brightness(2);
}





#summary {
  margin-top: 50px;

}


.activity-chart {
  margin-top: -200px;
  margin-left: 200px;
  width: 210px;
  background: transparent;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}






.menu-main li a.active,
.menu-auth li a.active {
  position: relative;
  transition: all 0.3s ease-in-out;
  font-size: 30px;
  top: -5px;
}



.custom-file-upload {
  display: inline-block;
  padding: 0.5rem;
  cursor: pointer;
  background-color: #e0e0e0;
  color: #000 !important; 
  border-radius: 10px;
  text-align: center;      /* چینش متن از راست */
  direction: rtl;         /* جهت متن راست به چپ */
  font-size: 1rem;
  border: 1px solid #000000;
}

input[type="file"] {
  display: none;
}

#file-name {
  margin-right: 5px;
  margin-top: 5px;
  font-style: italic;
}





#customers{
  overflow-y: auto;
}




.customer-list h3 {
  margin-bottom: 20px;
  color: #000000;
  text-align: center;
}

.customer-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.customer-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.customer-card:hover {
  transform: translateY(-5px);
}

.customer-card h4 {
  margin-top: 0;
  color: #003366;
  font-size: 18px;
}

.customer-card p {
  margin: 6px 0;
  font-size: 14px;
}



.user-activity {
  padding: 1rem;
  border-radius: 12px;
  margin-top: 2rem;
  overflow-x: auto;
  justify-items: center;
}

.user-activity h3 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
  color: #333;
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.5rem;
  direction: rtl;
}

.user-table th,
.user-table td {
  padding: 0.75rem;
  text-align: right;
  border: 1px solid #ddd;
}

.user-table th {
  background-color: #f2f2f2;
  color: #333;
  font-weight: bold;
}

.user-table tr:nth-child(even) {
  background-color: #f9f9f9;
}



#inviteButton {
  width: 100px;               /* عرض دلخواه */
  height: 40px;               /* ارتفاع (برای کنترل عمودی) */
  font-size: 23px;            /* اندازه فونت */
  display: flex;              /* فعال کردن flex برای وسط‌چین کردن */
  align-items: center;        /* عمودی وسط */
  justify-content: center;    /* افقی وسط */
  justify-self: end;   
  font-family: 'B_Ziba', sans-serif;
}

#inviteButton:hover {
  background-color: #005599;
}


#dashboard{
  overflow-y: auto;
}  


.ai-container {
  position: absolute;
  top: 150px;
  left: -5px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-items: center;
  z-index: 1000;
}

#aiIcon {
  width: 45px;
  height: 45px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

#aiIcon:hover {
  transform: scale(1.1);
}

.ai-box {
  overflow: hidden;
  width: 0;
  opacity: 0;
  transition: width 0.4s ease, opacity 0.3s ease;
  background-color: #ffffff;
  margin-top: -40px;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  /* باز شدن از سمت چپ */
  transform-origin: left center;
  margin-left: 50px; /* می‌تونی اینو تنظیم کنی یا حذف */
}

/* حالت باز شده */
.ai-box.active {
  width: 250px;
  opacity: 1;
}


#aiInput {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 50px;
  padding: 8px;
  font-size: 0.95rem;
  direction: rtl;
}

#score{
  overflow-y: auto;
  max-width: 900px;
  justify-content: center;
  margin: 0 auto;
}

.score-table-wrapper {
  display: inline-block; /* باعث میشه جدول در وسط صفحه قرار بگیره */
}



#scoreTable {
  width: 100%;
  border-collapse: collapse;
  font-family:'B_Ziba', sans-serif;
}

#scoreTable thead {
  background-color: #f0f0f0;
  position: sticky;
  top: 0;
}

#scoreTable th, #scoreTable td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

#scoreTable tr:hover {
  background-color: #f9f9f9;
}

.score-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
}


.challenge-box {
  width: 300px;
  margin: 0 auto;
  direction: rtl;
}

.challenge-item {
  margin-bottom: 20px;
}

.progress-bar {
  width: 100%;
  background-color: #eee;
  height: 10px;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 5px;
}

.progress {
  height: 100%;
  background-color: #4caf50;
  border-radius: 6px 0 0 6px;
  transition: width 0.5s ease;
}


.tickets-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tickets-panel {
  background: rgba(255, 255, 255, 0.08); /* پس‌زمینه نیمه‌شفاف */
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  width: 80%;
  max-width: 800px;
  font-family: 'Vazir';
  height: 90%;
  overflow: hidden;
  padding: 20px;
  border-radius: 10px;
  position: relative;
  direction: rtl;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2); /* مرز لطیف */
  color: #fff; /* برای کنتراست بهتر */
}


.ticket-list {
  flex: 1;
  overflow-y: scroll; /* اسکرول فعال */
  scrollbar-width: none; /* فایرفاکس */
  -ms-overflow-style: none; /* IE/Edge */
  max-height: 100%;
  padding-right: 5px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 1.2rem;
}

/* مخفی‌کردن اسکرول‌بار در WebKit (کروم و سافاری) */
.ticket-list::-webkit-scrollbar {
  display: none;
}



.ticket-item {
  background-color: #f9f9f9;
  border-right: 4px solid #2196f3;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.ticket-header {
  margin-bottom: 10px;
}

.ticket-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: white;
}

.ticket-status.answered {
  background-color: #4caf50;
}

.ticket-status.pending {
  background-color: #ff9800;
}

.ticket-question,
.ticket-answer {
  margin-bottom: 5px;
  line-height: 1.6;
}

.new-ticket-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.new-ticket-form input,
.new-ticket-form textarea {
  padding: 10px;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

.new-ticket-form button {
  align-self: flex-start;
  padding: 8px 20px;
  background-color: #2196f3;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.new-ticket-form button:hover {
  background-color: #1976d2;
}



.hidden {
  display: none;
}

#register{
  overflow-y: auto;
}

#academy {
  overflow-y: auto;
}

.roles-container {
  display: grid;
  gap: 20px;
  padding: 20px;
  font-family: 'Vazir', sans-serif;

}

.role-card {
  background: linear-gradient(
    to bottom right,
    rgba(30, 30, 47, 0.5),
    rgba(20, 20, 30, 0.3)
  );
  border-radius: 16px;
  color: white;
  padding: 20px;
  text-align: center;
  direction: rtl;
  transition: 0.3s;
  position: relative;

  /* افکت شیشه‌ای هماهنگ */
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);

  /* سایه هماهنگ */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}


.daily-mission-box {
  background: linear-gradient(
    to bottom right,
    rgba(30, 30, 47, 0.5),
    rgba(20, 20, 30, 0.3)
  );
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  justify-content: center;
  margin: 0 auto;
  margin-bottom: 50px;
  font-size: 1.9rem;
  max-width: 650px;
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}


.role-card h3 {
  margin-bottom: 10px;

}

.reward {
  font-size: 1.2rem;
  color: #00c9a7;
}

.next-step {
  font-size: 1.1rem;
  margin-top: 10px;
  color: #ffc107;
}

.current-role {
  border: 2px solid #00FFFF; /* ✅ حفظ مرز سبز */
  background: linear-gradient(
    to bottom right,
    rgba(30, 30, 47, 0.5),
    rgba(20, 20, 30, 0.3)
  );
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border-radius: 12px; /* مثل بقیه هماهنگ باشه */
  color: white;
  padding: 20px;
  text-align: center;
}


.next-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}



.daily-mission-box h3 {
  margin-bottom: 10px;
}

.progress-wrapper {
  margin-top: 15px;

}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #444;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 5px;
}

.progress-fill {
  height: 100%;
  background: #4caf50;
  width: 0%;
  transition: width 0.4s ease-in-out;
  border-radius: 6px;
}
.hidden {
  display: none;
}

#toggleNextRolesBtn {
  width: 240px;
  border: none;
  background-color: transparent;
  color: white;
  border-radius: 8px;
  direction: rtl;                  /* متن راست‌به‌چپ */
  text-align: right;              /* چسبیدن متن به راست */
  padding: 10px 16px;             /* فضای داخلی مناسب */
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-left: auto;              /* دکمه به راست بچسبه */
  display: block;
  font-family: 'Vazir';
}









#academy {
  padding: 40px 20px;
  font-family: 'Vazir', sans-serif;
  direction: rtl;
}

#academy h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  color: #ffffff;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.video-card {
  background: rgb(80, 80, 80);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 10px;
  text-align: center;
}

.video-card iframe {
  width: 100%;
  height: 180px;
  border-radius: 8px;
}

.faq-section h3 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 24px;
}

.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgb(80, 80, 80);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

.faq-question {
  padding: 15px 20px;
  font-weight: bold;
  font-size: 20px;
  position: relative;
  cursor: pointer;
  color: #ffffff;
}

.faq-question .plus {
  position: absolute;
  left: 20px;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.faq-answer {
  display: none;
  padding: 10px 20px 20px;
  color: #ffffff;
  border-top: 1px solid #ddd;
  font-size: 19px;
}


#data {
  padding: 40px;
  font-family: 'Vazir', sans-serif;
  direction: rtl;
  overflow-y: auto;
}

#data h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #ffffff;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.chart-box {
  background: rgb(117, 117, 117);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
  margin-top: 20px;
}

.chart-title {
  margin-top: 10px;
  font-weight: bold;
  color: #ffffff;
}

.data-summary {
  background: rgba(255, 255, 255, 0.1); /* نیمه‌شفاف */
  border-right: 4px solid rgba(205, 233, 50, 0.4); /* مرز نیمه‌شفاف */
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 100px;
  backdrop-filter: blur(12px); /* افکت شیشه‌ای */
  -webkit-backdrop-filter: blur(12px); /* برای Safari */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); /* سایه ملایم برای برجسته شدن */
  border: 1px solid rgba(255, 255, 255, 0.2); /* خط نازک اطراف */
}


.data-summary h3 {
  margin-bottom: 10px;
  color: #ffffff;
}

.data-summary p {
  color: #ffffff;
  line-height: 1.8;
}
  

































































#agentForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: auto;
  direction: rtl;
}

#agentForm input,
#agentForm select,
#agentForm button,
#agentForm label,
#agentForm span,
#agentForm #calendar-container {
  width: 100%;
  box-sizing: border-box;
}

#score {
  scrollbar-width: none; /* برای فایرفاکس */
  -ms-overflow-style: none; /* برای IE و Edge */
}

#score::-webkit-scrollbar {
  display: none; /* برای کروم و سافاری */
}

#dashboard {
  scrollbar-width: none; /* برای فایرفاکس */
  -ms-overflow-style: none; /* برای IE و Edge */
}

#dashboard::-webkit-scrollbar {
  display: none; /* برای کروم و سافاری */
}







.user-table {
  margin-top: 5px;
  margin-left: auto;
  margin-right: auto;
}

#summary {
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto;
  width: fit-content; /* یا مقدار مشخص مثل 300px */
  justify-items: center;
  font-size: 20px;
}



.activity-chart {
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto;
  width: 300px; /* یا مقدار مشخص مثل 300px */
}






#dashboard {
  overflow-x: hidden;
}


#customerForm {
  display: none; /* فقط این فعلاً */
  grid-template-columns: 1fr ; /* دو ستون مساوی */
  gap: 1rem;
  max-width: 1800px;
  margin: auto;
  margin-left: 0;
  margin-right: 10px;
  margin-bottom: 100px;
}


#customers {
  overflow-y: auto;
  scrollbar-width: none; /* برای فایرفاکس */
  -ms-overflow-style: none; /* برای IE و Edge */
}

#customers::-webkit-scrollbar {
  display: none; /* برای کروم و سافاری */
}

.customer-list h3 {
  margin-bottom: 40px;
  font-size: 28px;
  color: #ffffff;
  text-align: center;
}

.customer-cards {
  display: grid;
  grid-template-columns: 1fr; /* فقط یک ستون */
  gap: 20px;
  direction: rtl;
}

.customer-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.customer-card:hover {
  transform: translateY(-5px);
}

.customer-card h4 {
  margin-top: 0;
  color: #003366;
  font-size: 18px;
}

.customer-card p {
  margin: 6px 0;
  font-size: 14px;
}

#toggleFormBtn {
  cursor: pointer;
  border: none;
  background: none;
}




#toggleFormBtn img {
  width: 230px;
  height: auto;
}







.menu-main-mobile a {
  font-size: 23px;
}





main{
  margin-left: 70px;
}
.main-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.menu-main-box-mobile {
  position: fixed;
  top: 30px;
  left: 0;
  width: 150px;
  height: 45px;
  z-index: 1000;
  background: linear-gradient(to left,
    #0D47A1,
    #092F5E,
    #000000);
  background-size: 200%;
  background-position: left;
  color: white;
  padding: 15px;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
  font-size: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-items: center;
  text-align: center;
  font-family: 'Vazir', sans-serif;
  transition:
    background-position 0.8s ease,
    width 0.4s ease 0.4s,
    top 0.4s ease 0.7s;
}

.menu-main-box-mobile.expanded {
  width: 300px;
  border-radius: 0 0 0 0;
  top: -65px;
  background: linear-gradient(to left,
  #0D47A1,
  #051b36,
  #000000);
}


.menu-main-mobile {
  display: grid;
  grid-template-columns: repeat(2, 60px);
  grid-auto-rows: 60px;
  gap: 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  list-style: none;
  padding: 0;
  margin-top: 10px;
  justify-content: center;

  /* ✅ پس‌زمینه شیشه‌ای با گرادیانت به آبی */
  background: linear-gradient(135deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(4, 19, 41, 0.4) 100%);

  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);

  border-radius: 0 0 14px 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.9);
}




.menu-main-mobile.visible {
  height: 110vh;
  max-height: 110vh;
  z-index: 999;
  overflow-y: auto;
  border-radius: 0;
  min-width: 300px;
  transition: 
    max-height 0.4s ease 1s;
}

.menu-main-mobile.visible {
  scrollbar-width: none; /* برای فایرفاکس */
  -ms-overflow-style: none; /* برای IE و Edge */
}






/* هر کاشی با اندازه و استایل خاص */
.menu-item {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 10px;
  padding: 10px;
  box-sizing: border-box;
  background-repeat: no-repeat;
  background-size: 40px;
  position: relative;
  top: 25px;
}

/* 📦 موقعیت‌دهی دقیق هر آیتم */
.menu-item.dashboard {
  background-color: #555555; /* بنفش تیره */
  font-family: 'Vazir', sans-serif;
  background-image: url('dashboard-logo.png');
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  background-size: 70px;
}

/* 📦 موقعیت‌دهی دقیق هر آیتم */
.menu-item.dashboard a {
  font-size: 35px;
  margin-top: 60px;
}

.menu-item.customers {
  background-color: #1E88E5; /* آبی پررنگ مدرن */
  font-family: 'Vazir', sans-serif;
  background-image: url('customer-logo.png');
  background-repeat: no-repeat;
  background-position: 5px 5px;
  grid-column: 3 / span 2;
  grid-row: 1 / span 1;
  background-size: 30px;
}
.menu-item.customers a {
  margin-left: 30px;
  margin-top: 10px;
}



.menu-item.score {
  background-color: #1E88E5; /* فیروزه‌ای خنک */
  font-family: 'Vazir', sans-serif;
  background-image: url('score.png');
  background-size: 130px; /* تغییر سایز عکس به ۶۰ در ۶۰ پیکسل */
  background-repeat: no-repeat; /* جلوگیری از تکرار عکس */
  background-position: center; /* قرار دادن عکس در وسط */
  grid-column: 3 / span 2;
  grid-row: 2 / span 2;
  height: 200px;
}

.menu-item.score a {
  font-size: 0; /* مخفی کردن متن */
}





.menu-item.notif {
  background-color: #b4475f; /* بنفش گرم و انرژی‌بخش */
  font-family: 'Vazir', sans-serif;
  background-image: url('notif-logo.png');
  background-repeat: no-repeat;
  background-position: center center;
  grid-column: 1 / span 1;
  grid-row: 7 / span 1;
  width: 60px;
  height: 60px;
}

.menu-item.notif a {
  display: block;
  width: 100%;
  height: 100%;
}


.menu-item.settings {
  background-color: #555555; /* قهوه‌ای شکلاتی */
  font-family: 'Vazir', sans-serif;
  background-image: url('setting-logo.png');
  background-repeat: no-repeat;
  background-position: center center;
  grid-column: 2 / span 2;
  grid-row: 7 / span 2;
  width: 60px;
  height: 60px;
}




.menu-item.logout {
  background-color: #8b8b8b; /* قرمز تند کنترل‌شده */
  font-family: 'Vazir', sans-serif;
  grid-column: 1 / span 1;
  grid-row: 8 / span 1;
  width: 60px;
  height: 60px;
}

.menu-item.logout a {
  font-size: 20px;
}

.menu-item.tools {
  background-color: #8b8b8b; /* آبی بنفش سرد */
  font-family: 'Vazir', sans-serif;
  background-image: url('tools-logo.png');
  background-repeat: no-repeat;
  background-position: 30px 5px;
  grid-column: 2 / span 3;
  grid-row: 8 / span 1;
  background-size: 50px;
  font-size: 24px;
}
.menu-item.tools a {
  color: #cde932;
  font-size: 28px;
  margin-left: 60px;
}

.menu-item.finance {
  background-color: #cde932; /* آبی بنفش سرد */
  font-family: 'Vazir', sans-serif;
  background-position: 10px 5px;
  background-image: url('money.png');
  grid-column: 1 / span 2;
  grid-row: 6 / span 1;
  background-size: 50px;
}


/* 📦 موقعیت‌دهی دقیق هر آیتم */
.menu-item.finance a {
  color: rgb(0, 0, 0);
  font-size: 28px;
  margin-bottom: 0;
  margin-left: 60px;
}

















.menu-item.data {
  background-color: #cde932; /* سبز آبی حرفه‌ای */
  font-family: 'Vazir', sans-serif;
  grid-column: 1 / span 2;
  grid-row: 3 / span 1;
}

.menu-item.data a {
  font-size: 20px;
  color: #000000;
}

.menu-item.therapy {
  background-color: #8b8b8b; /* نارنجی آجری مدرن */
  font-family: 'Vazir', sans-serif;
  grid-column: 1 / span 2;
  grid-row: 4 / span 1;
}

.menu-item.therapy a {
  font-size: 17px;
}

.menu-item.academy {
  background-color: #8b8b8b; /* نارنجی آجری مدرن */
  font-family: 'Vazir', sans-serif;
  background-image: url('academy-logo.png');
  background-repeat: no-repeat;
  background-position: 0px 5px;
  grid-column: 1 / span 4;
  grid-row: 5 / span 1;
  background-size: 70px;
}

.menu-item.academy a {
  color: #cde932; /* نارنجی آجری مدرن */
  font-size: 30px;
  margin-left: 70px;
}


.menu-item.text {
  background-color: transparent; /* نارنجی آجری مدرن */
  font-family: 'Vazir', sans-serif;
  grid-column: 1 / span 4;
  grid-row: 9 / span 1;
}

.menu-item.text a {
  color: #ffffff; /* نارنجی آجری مدرن */
  font-size: 20px;
}

/* 📦 موقعیت‌دهی دقیق هر آیتم */
.menu-item.tickets {
  background-color: #b4475f; /* بنفش تیره */
  font-family: 'Vazir', sans-serif;
  background-image: url('tickets-logo.png');
  grid-column: 3 / span 2;
  grid-row: 6 / span 2;
  background-size: 50px;
  background-position: 10px 75px;
}

/* 📦 موقعیت‌دهی دقیق هر آیتم */
.menu-item.tickets a {
  color: #cde932;
  font-size: 28px;
  margin-bottom: 85px;
  margin-left: 25px;
}

.menu-item a {
  display: block;
  width: 100%;
  color: white;
  text-decoration: none;
}









.menu-main-box-mobile.visible {
  gap: 50px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}



.menu-main-box-mobile {
  display: none;
}

.menu-main-box-mobile.visible {
  display: block;
}

.menu-main-mobile a {
  color: white;
  text-decoration: none;
  font-size: 24px;
}

.profile-container {
  display: none;
}

.ai-container{
  display: none;
}

#score{
  overflow-x: hidden;
}

.score-table-wrapper {
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto;
  width: fit-content; /* یا مقدار مشخص مثل 300px */
}

.challenge-box {
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto;
  width: fit-content; /* یا مقدار مشخص مثل 300px */
}




/* --- back-button-2 --- */
.back-button-2 {
  position: relative;
  top: 20px;
  left: 0;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, rgba(0, 120, 255, 1) 0%, rgba(0, 120, 255, 0) 100%);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 30px;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-button-2:hover {
  background: radial-gradient(circle at 50% 50%, rgba(0, 180, 255, 1) 0%, rgba(0, 120, 255, 0) 100%);
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.2),
              0 4px 15px rgba(0, 180, 255, 0.5);
  transform: scale(1.1);
}

.back-button-2:active {
  background: radial-gradient(circle at 50% 50%, rgba(0, 150, 220, 1) 0%, rgba(0, 120, 255, 0) 100%);
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.5);
  transform: scale(0.95);
}

/* --- back-button --- */
.back-button {
  position: relative;
  top: 20px;
  left: 50%;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, rgba(0, 120, 255, 1) 0%, rgba(0, 120, 255, 0) 100%);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 30px;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-button:hover {
  background: radial-gradient(circle at 50% 50%, rgba(0, 180, 255, 1) 0%, rgba(0, 120, 255, 0) 100%);
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.2),
              0 4px 15px rgba(0, 180, 255, 0.5);
  transform: scale(1.1);


}

.back-button:active {
  background: radial-gradient(circle at 50% 50%, rgba(0, 150, 220, 1) 0%, rgba(0, 120, 255, 0) 100%);
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.5);
  transform: scale(0.95);
}

/* --- main --- */
main{
  margin-left: 0;
}

/* --- دکمه‌ها --- */
#loginForm button {
  background: radial-gradient(circle, rgba(0, 120, 255, 1) 0%, rgba(0, 120, 255, 0) 100%);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}


#loginForm button:hover {
  background: radial-gradient(circle at 50% 50%, rgba(0, 180, 255, 1) 0%, rgba(0, 120, 255, 0) 100%);
  box-shadow: inset 0 0 8px rgba(255,255,255,0.2),
              0 4px 15px rgba(0, 180, 255, 0.5);
  transform: scale(1.05);
}

#loginForm button:active {
  background: radial-gradient(circle at 50% 50%, rgba(0, 150, 220, 1) 0%, rgba(0, 120, 255, 0) 100%);
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.5);
  transform: scale(0.95);
}







.settings-panel button {
  padding: 8px 16px;
  background-color: #0D47A1;
  border: none;
  color: white;
  font-family: 'Vazir', sans-serif;
  transition: none;
}
.settings-panel button:hover {
  background-color: #385c91;

}


.footer-text {
  font-size: 14px;
  color: #ffffff;
  background-color: #1A202C;
  bottom: 0;
  height: 20px;
  width: 100%;
  position: fixed;
  justify-content: center; /* افقی */
  align-items: center;     /* عمودی */
  display: flex;
  
}

h2,
h3 {
  color: #ffffff;
}

p {
  color: #ffffff;
  
}

tbody {
  color: #ffffff;
  font-family: 'B_Ziba';
  font-size: 24px;
}

span {
  color: #ffffff;
}
strong{
  color: #ffffff;
}


.customer-card {
  background: radial-gradient(circle, rgba(26, 32, 44, 0.6) 0%, rgba(17, 20, 24, 0.5) 40%, rgba(0, 0, 0, 0.4) 80%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 16px;
  transition: transform 0.2s ease;
  border: 2px solid rgba(255, 255, 255, 0.1); /* مرز لطیف برای زیبایی بیشتر */
}


.customer-card:hover {
  transform: translateY(-5px);
}

.customer-card h4 {
  margin-top: 0;
  color: #ffffff;
  font-size: 18px;
}

#customers, #customers * {
  font-family: 'B_NAZANIN', sans-serif;
}

#customerForm button {
  grid-column: 1;             /* اگر می‌خوای فقط در ستون دوم باشه */
  width: 120px;               /* عرض دلخواه */
  height: 45px;               /* ارتفاع (برای کنترل عمودی) */
  font-size: 18px;            /* اندازه فونت */
}

.user-activity h3 {
  color: #ffffff;
}

.user-table th,
.user-table td {
  padding: 0.75rem;
  text-align: right;
  border: 1px solid #4e4e4e;
}

.user-table th {
  background-color: #4e4e4e;
  color: #ffffff;
  font-weight: bold;
}

.user-table tr:nth-child(even) {
  background-color: #4e4e4e;
}


#inviteButton {
  width: 110px;               /* عرض دلخواه */
  height: 45px;               /* ارتفاع (برای کنترل عمودی) */
  font-size: 18px;            /* اندازه فونت */
  display: flex;              /* فعال کردن flex برای وسط‌چین کردن */
  align-items: center;        /* عمودی وسط */
  justify-content: center;    /* افقی وسط */
  justify-self: end;   
  font-family: 'B_NAZANIN', sans-serif;
}

#inviteButton:hover {
  background-color: #385c91;
}

#register, #register h2, #register button {
  font-family: 'Vazir', sans-serif;
}
#register {
  overflow-y: auto;           /* فعال‌سازی اسکرول عمودی */
  -ms-overflow-style: none;   /* مخفی‌سازی در IE و Edge */
  scrollbar-width: none;      /* مخفی‌سازی در Firefox */
}
#register::-webkit-scrollbar {
  display: none;              /* مخفی‌سازی در Chrome, Safari */
}

#login button {
  font-family: 'Vazir', sans-serif;
}


#customers h2, #customers button, #customers h3, #customers h4, #customers p, #customers strong {
  font-family: 'Vazir', sans-serif;
}
#customers h2 {
  direction: rtl;
}

#customers h3 {
  color: #ffffff;
}
#customers input {
  font-family: 'Vazir', sans-serif;
}


#toggleRequestFormBtn {
  background-color: transparent;  /* پس‌زمینه شفاف */
  border: none;                   /* بدون حاشیه */
  cursor: pointer;                /* نشانگر دست هنگام هاور */
  display: inline-flex;           /* برای تراز بهتر محتوا */

}


#toggleRequestFormBtn img {
  width: 230px;
  height: auto;
}

#customerRequestForm {
  display: none; /* فقط این فعلاً */
  grid-template-columns: 1fr ; /* دو ستون مساوی */
  gap: 1rem;
  max-width: 800px;
  margin: auto;
  margin-left: 0;
  margin-right: 10px;
  margin-bottom: 100px;
}

#customerRequestForm button {
  grid-column: 1;             /* اگر می‌خوای فقط در ستون دوم باشه */
  width: 140px;               /* عرض دلخواه */
  height: 45px;               /* ارتفاع (برای کنترل عمودی) */
  font-size: 18px;            /* اندازه فونت */
}








#toggleProformaBtn {
  background-color: transparent;  /* پس‌زمینه شفاف */
  border: none;                   /* بدون حاشیه */
  cursor: pointer;                /* نشانگر دست هنگام هاور */
  display: inline-flex;           /* برای تراز بهتر محتوا */

}


#toggleProformaBtn img {
  width: 230px;
  height: auto;
}

#proformaForm {
  display: grid;
  grid-template-columns: 1fr; /* یک ستون */
  gap: 1rem;
  max-width: 800px; /* عرض معقول برای فرم تکی */
  margin: 0 auto 100px auto;
}

#proformaForm input,
#proformaForm select,
#proformaForm textarea,
#proformaForm button {
  width: 100%;        /* پر کردن ستون */
  box-sizing: border-box;
  font-size: 18px;
  margin-top: 18px;

}






#proformaForm button {
  grid-column: 1;             /* اگر می‌خوای فقط در ستون دوم باشه */
  width: 110px;               /* عرض دلخواه */
  height: 45px;               /* ارتفاع (برای کنترل عمودی) */
  font-size: 18px;            /* اندازه فونت */
}









#dashboard button {
  font-family: 'Vazir', sans-serif;
}

.ticket-item {
  background-color: #4e4e4e;
  border-right: transparent;
  padding: 15px;
  border-radius: 8px;
  box-shadow: transparent;
}

#ticketsOverlay .ticket-question {
  color: #ffffff;
}

#ticketsOverlay .ticket-answer {
  color: #c0c0c0;
}

#ticketsOverlay .ticket-answer strong {
  color: #e6e6e6;
}
 
.score-table-wrapper {
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  direction: rtl;
  display: block;         /* inline-block رو حذف کردیم */
  width: fit-content;     /* اندازه جدول به محتوای آن */
  max-height: 100%; /* حدود 6 ردیف */

}

#settingsOverlay h4 {
  color: #ffffff;
  direction: rtl;
}

#scoreTable {
  font-size: 22px;
}

#score h3 {
  font-size: 26px;
}

#score span {
  font-size: 20px;
}

.challenge-box {
  margin-bottom: 50px;
}




.notifications {
  padding: 20px;
  background: #1c1c1c;
  color: #fff;
}

.notification-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  direction: rtl; /* ←← این خط باعث چیدمان از راست به چپ میشه */
}


.notification-box {
  background: #292929;
  border-radius: 12px;
  padding: 15px;
  position: relative;
  transition: background 0.3s;
}

.notification-box.unread::after {
  content: '';
  width: 10px;
  height: 10px;
  background: red;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 10px;
}

#notifBtnMobile.has-unread::after {
  content: '';
  width: 14px;
  height: 14px;
  background: red;
  border-radius: 50%;
  position: absolute;
  top: -5px;
  right: -15px;
}

#notifBtnMobile {
  position: relative;
  display: block; /* اطمینان از دیده شدن */
  width: 60px;
  height: 60px;
}















.ai-main-box-mobile {
  position: fixed;
  bottom: 30px;
  right: 0;
  width: 110px;
  height: 45px;
  z-index: 1000;
  background-color: #cde932;
  color: rgb(0, 0, 0);
  padding: 0 20px 0 20px;
  border-radius: 30px 0 0 30px;
  cursor: pointer;
  font-size: 19px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Vazir', sans-serif;
  transition:
    bottom 0.4s ease 0.7s,
    width 0.4s ease 0.4s,
    background-color 0.4s ease 0.4s,
    color 0.4s ease 0.4s;

}

.ai-main-box-mobile.expanded {
  width: 250px;
  border-radius: 0;
  background-color: rgba(0, 0, 0, 0.92);
  color: rgb(255, 255, 255);
  bottom: 60px;
  right: 0; /* حالت عادی (بازشده) */
  transition:
    right 0.2s ease, /* اضافه شد */
    bottom 0.4s ease 0.7s,
    width 0.4s ease 0.4s,
    background-color 0.4s ease 0.4s,
    color 0.4s ease 0.4s;

}


.ai-main-mobile {
  position: fixed;
  bottom: 110px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  list-style: none;
  background-color: rgba(0, 0, 0, 0.80);
}

.ai-main-mobile.visible {
  min-width: 290px;
  height: 60vh;
  max-height: 60vh;
  transition: max-height 0.4s ease 1s;
}

.ai-chat-history {
  flex: 1;
  padding: 5px;
  overflow-y: auto;
  direction: rtl;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-chat-history {
  overflow-y: auto;           /* فعال‌سازی اسکرول عمودی */
  -ms-overflow-style: none;   /* مخفی‌سازی در IE و Edge */
  scrollbar-width: none;      /* مخفی‌سازی در Firefox */
}
.ai-chat-history::-webkit-scrollbar {
  display: none;              /* مخفی‌سازی در Chrome, Safari */
}
.ai-input-wrapper {
  position: relative;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.9);
}

.ai-input-wrapper input {
  width: 100%;
  padding: 8px 10px 8px 10px; /* فضای کافی برای دکمه سمت چپ */
  font-size: 14px;
  border-radius: 50px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.ai-input-wrapper button {
  position: absolute;
  top: 14.5px;
  transform: translateY(-50%);
  left: -27px; /* یا right: 15px; اگر می‌خوای طرف دیگه باشه */
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.send-icon-2 {
  transition: all 0.2s ease;
}
.ai-input-wrapper button img.send-icon-2 {
  width: 38px;
  height: auto;
  object-fit: contain;
}

.ai-toggle-btn {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.ai-label,
.ai-icon {
  position: absolute;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* نوشته در حالت عادی دیده میشه */
.ai-label {
  opacity: 1;
  transform: translateY(0);
}
.ai-label {
  color: black;
  transition: color 0.4s ease, opacity 0.5s ease, transform 0.5s ease;
}

.ai-main-box-mobile.expanded .ai-label {
  color: white;
}

/* آیکن در حالت عادی مخفی */
.ai-icon {
  opacity: 0;
  transform: translateY(10px); /* کمی پایین‌تر برای انیمیشن نرم */
  width: 40px;
  height: auto;
  right: 60px;
}

/* وقتی حالت minimized فعال بشه */
.ai-main-box-mobile.minimized .ai-label {
  opacity: 0;
  transform: translateY(-10px); /* بالا بره و محو بشه */
}

.ai-main-box-mobile.minimized .ai-icon {
  opacity: 1;
  transform: translateY(0); /* بره جای نوشته و ظاهر بشه */
}
.ai-main-box-mobile.minimized {
  right: -55px; /* یا هر مقدار بیشتر برای کشیده شدن به سمت راست */
  transition: right 0.5s ease;
  padding: 0;
}

.ai-chat-message.user,
.ai-chat-message.ai {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
  word-wrap: break-word;
  display: inline-block;
}

.ai-chat-message.user {
  align-self: flex-start;
  background-color: #00c9a7;
  color: black;
  border-bottom-right-radius: 0;
  text-align: right;
}

.ai-chat-message.ai {
  align-self: flex-end;
  background-color: #3a3a3a;
  color: white;
  border-bottom-left-radius: 0;
  text-align: right;
}












#login {
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
  z-index: 1000;
  
}

#loginForm {
  width: 70%;
  max-width: 350px;  

}

#login input {
  font-size: 24px;
  font-family: 'B_Ziba';

}

#login h2 {
  font-size: 30px;
  direction: rtl;
  font-family: 'Vazir';

}

#register input {
  font-size: 24px;
}

#register h2 {
  font-size: 30px;
}


.new-ticket-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  
}

.new-ticket-form input,
.new-ticket-form textarea {
  padding: 10px;
  font-family: Vazir;
  font-size: 1.3rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 97%;
  box-sizing: border-box;
}

.new-ticket-form button {
  align-self: flex-start;
  font-family: 'Vazir';
  width: 140px;
  padding: 8px 20px;
  background-color: #0D47A1;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;
}

.new-ticket-form button:hover {
  background-color: #385c91;
}
.new-ticket-form button:active {
  transform: scale(0.9);
}
.roles-container {
  display: flex;
  flex-direction: column; /* ← کارت‌ها زیر هم قرار می‌گیرن */
  gap: 20px;
  padding: 20px;
}


#academy h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  color: #ffffff;
}

#academy {
  font-family: 'Vazir';
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ← دقیقاً دو ستون */
  gap: 20px;
  margin-bottom: 50px;
}

.video-card {
  background: linear-gradient(
    to bottom right,
    rgba(30, 30, 47, 0.5),
    rgba(20, 20, 30, 0.3)
  );
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 10px;
  text-align: center;
  color: white;
  
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
}


.video-card iframe {
  width: 100%;
  height: 180px;
  border-radius: 8px;
}

.faq-section h3 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 24px;
}

.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: linear-gradient(
    to bottom right,
    rgba(30, 30, 47, 0.5),
    rgba(20, 20, 30, 0.3)
  );
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;

  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  color: white;
}


.faq-question {
  padding: 15px 20px;
  font-weight: bold;
  font-size: 20px;
  position: relative;
  cursor: pointer;
  color: #ffffff;
}

.faq-question .plus {
  position: absolute;
  left: 20px;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.faq-answer {
  display: none;
  padding: 10px 20px 20px;
  color: #ffffff;
  border-top: 1px solid #ddd;
  font-size: 19px;
}

.faq-section {
  margin-bottom: 120px;
}

#summary {
  position: relative;
  display: flex;
  flex-wrap: wrap;             /* اجازه ردیف دوم */
  gap: 15px;
  margin: 20px auto;
  justify-content: center;     /* وسط‌چین کردن افقی */
}

#summary p {
  flex: 1 1 140px;
  height: 120px;
  background: linear-gradient(
    to bottom right,
    rgba(30, 30, 47, 0.5),
    rgba(20, 20, 30, 0.3)
  );
  color: #fff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.6rem;
  text-align: center;
  min-width: 120px;
  max-width: 180px;

  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}








.chart-box {
  background: linear-gradient(
    to bottom right,
    rgba(30, 30, 47, 0.5),
    rgba(20, 20, 30, 0.3)
  );
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 20px;

  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  color: white; /* برای خوانایی متن */
}


.chart-box h3 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.6rem;
  text-align: center;
}

canvas {
  width: 100% !important;
  max-width: 500px;
  height: auto !important;
  margin: 0 auto;
  display: block;
}

.today-followups {
  margin-top: 30px;
  background: #2D3748;
  padding: 20px;
  border-radius: 12px;
  color: #fff;
  justify-items: center;
}

.today-followups h3 {
  margin-bottom: 15px;
  font-size: 1.6rem;
}

#todayFollowupsList {
  list-style: none;
  padding: 0;
  margin: 0;
}

#todayFollowupsList li {
  padding: 10px;
  margin-bottom: 8px;
  background: #292929;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

.invite-btn-wrapper {
  display: flex;
  gap: 10px; /* فاصله بین دکمه‌ها */
  flex-wrap: wrap; /* اگر جا کم بود، بشکنن به خط بعد */
}


#specialInviteButton {
  width: 140px;               /* عرض دلخواه */
  height: 45px;               /* ارتفاع (برای کنترل عمودی) */
  font-size: 18px;            /* اندازه فونت */
  display: flex;              /* فعال کردن flex برای وسط‌چین کردن */
  align-items: center;        /* عمودی وسط */
  justify-content: center;    /* افقی وسط */
  justify-self: end;   
  font-family: 'B_NAZANIN', sans-serif;
}

.stat-boxes {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap; /* برای ریسپانسیو */
  justify-content: center;
}

.stat-box {
  background: linear-gradient(
    to bottom right,
    rgba(30, 30, 47, 0.5),
    rgba(20, 20, 30, 0.3)
  );
  color: #F7F9FC;
  padding: 20px;
  border-radius: 12px;
  width: 200px;
  text-align: center;

  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}


.stat-box h4 {
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.hidden {
  display: none;
}

.new-ticket-wrapper h3 {
  transition: color 0.3s;
}

.new-ticket-wrapper h3.open {
  color: #F59E0B;
}


#data {
  max-width: 800px;
  justify-content: center;
  margin: 0 auto;
}

#data {
  overflow-y: auto;           /* فعال‌سازی اسکرول عمودی */
  -ms-overflow-style: none;   /* مخفی‌سازی در IE و Edge */
  scrollbar-width: none;      /* مخفی‌سازی در Firefox */
}

#data::-webkit-scrollbar {
  display: none;              /* مخفی‌سازی در Chrome, Safari */
}

#academy {
  overflow-y: auto;           /* فعال‌سازی اسکرول عمودی */
  -ms-overflow-style: none;   /* مخفی‌سازی در IE و Edge */
  scrollbar-width: none;      /* مخفی‌سازی در Firefox */
  -webkit-overflow-scrolling: touch;
  touch-action: auto;
}

#academy::-webkit-scrollbar {
  display: none;              /* مخفی‌سازی در Chrome, Safari */
}












.therapy-box {
  padding: 10px;
  max-width: 800px;
  margin: auto;
  display: flex;
  flex-direction: column;
  height: 90%;
  position: relative;
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
  margin-top: 50px;
  height: 78%;
  overflow-y: auto;
}
.prompt-grid {
  overflow-y: auto;           /* فعال‌سازی اسکرول عمودی */
  -ms-overflow-style: none;   /* مخفی‌سازی در IE و Edge */
  scrollbar-width: none;      /* مخفی‌سازی در Firefox */
}

.prompt-grid::-webkit-scrollbar {
  display: none;              /* مخفی‌سازی در Chrome, Safari */
}
.prompt-item {
  background-color: #1e1e2f;
  color: white;
  padding: 42px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 1.6rem;
  text-align: center;
}

.prompt-item:hover {
  background-color: #2e2e42;
}

.therapy-chat {
  flex: 1;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.therapy-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}
.therapy-messages {
  overflow-y: auto;           /* فعال‌سازی اسکرول عمودی */
  -ms-overflow-style: none;   /* مخفی‌سازی در IE و Edge */
  scrollbar-width: none;      /* مخفی‌سازی در Firefox */
}

.therapy-messages::-webkit-scrollbar {
  display: none;              /* مخفی‌سازی در Chrome, Safari */
}

.therapy-input-box {
  position: fixed;
  bottom: 50px; /* فاصله از پایین صفحه */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 700px;
  z-index: 100;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: transparent;
  border: 2px solid #ccc;
  border-radius: 50px;
  width: 100%;
  height: 60px;
  padding: 0 20px; /* چپ و راست */
  box-sizing: border-box;
}

.input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 18px;
  background: transparent;
  color: #ffffff;
  font-family: 'Vazir';
  padding-right: 60px; /* فضای کافی برای دکمه ارسال */
  height: 100%;
}


.input-btn {
  position: absolute;
  right: -25px;
  top: 30%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.send-icon {
  width: 60px;
  height: auto;
}



.input-btn:active {
  scale: 0.90;
}

.user-msg, .bot-msg {
  padding: 10px;
  border-radius: 10px;
  max-width: 75%;
  margin-bottom: 20px;
  word-break: break-word;
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 18px;
  font-family: 'Vazir';

}



.user-msg {
  background-color: #daf1ff;
  align-self: flex-end;
}

.bot-msg {
  background-color: #eee;
  align-self: flex-start;
}

.hidden {
  display: none !important;
}




#loaderOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle,
    #000000 0%,
    #111418 40%,
    #081020 80%);  
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#loaderText {
  text-align: center;
  color: white;
  font-family: 'Vazir', sans-serif;
}

.loader-part {
  display: block;
  margin: 10px 0;
  white-space: pre; /* حفظ فاصله‌ها */
}

/* استایل اختصاصی برای هر بخش */
#typeTarget1 { font-size: 26px; color: #9cf; }
#typeTarget2 { font-size: 32px; color: #fff; font-weight: bold; }
#typeTarget3 { font-size: 24px; color: #ffc107; }



.birthdate-group {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  direction: rtl;
}

.birthdate-group input {
  flex: 1;
  text-align: center;
}

#agentForm label {
  font-size: 26px; /* یا مثلاً 16px یا 18px */
  font-family: "Vazir";
  color: white;
}


#customerexcelbtn {
  width: 250px;               /* عرض دلخواه */
  height: 45px;               /* ارتفاع (برای کنترل عمودی) */
  font-size: 18px;            /* اندازه فونت */
  display: flex;              /* فعال کردن flex برای وسط‌چین کردن */
  align-items: center;        /* عمودی وسط */
  justify-content: center;    /* افقی وسط */
  justify-self: center;   
  font-family: 'B_NAZANIN', sans-serif;
  direction: rtl;
  background: radial-gradient(circle, rgba(0, 120, 255, 1) 0%, rgba(0, 120, 255, 0) 100%);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}




#customerexcelbtn:hover {
  background: radial-gradient(circle at 50% 50%, rgba(0, 180, 255, 1) 0%, rgba(0, 120, 255, 0) 100%);
  box-shadow: inset 0 0 8px rgba(255,255,255,0.2),
              0 4px 15px rgba(0, 180, 255, 0.5);
  transform: scale(1.05);
}

#customerexcelbtn:active {
  background: radial-gradient(circle at 50% 50%, rgba(0, 150, 220, 1) 0%, rgba(0, 120, 255, 0) 100%);
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.5);
  transform: scale(0.95);
}









.role-badge-number {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  background-color: #0D47A1;
  color: white;
  font-size: 23px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}







#proformaForm {
  display: none;
}

#proformaForm.visible {
  display: block;
}














.faq2-section h3 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 24px;
}

.faq2 {
  max-width: 800px;
  margin: 0 auto;
}

.faq2-item {
  background: rgb(80, 80, 80);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

.faq2-question {
  padding: 15px 20px;
  font-weight: bold;
  font-size: 20px;
  position: relative;
  cursor: pointer;
  color: #ffffff;
}

.faq2-question .plus {
  position: absolute;
  left: 20px;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.faq2-answer {
  display: none;
  padding: 10px 20px 20px;
  color: #ffffff;
  border-top: 1px solid #ddd;
  font-size: 19px;
}

.faq2-section {
  margin-bottom: 120px;
}











.upload-box {
  position: absolute;
  z-index: 999;
  background-color: #cde932;
  color: rgb(0, 0, 0);
  border-radius: 50px;
  transition: all 0.5s ease;
  overflow: hidden;
  left: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#uploadText, #uploadLogo {
  position: absolute;
  transition: opacity 0.5s ease;
}

#uploadText {
  font-size: 24px;
  color: #000;
  opacity: 1;
}

#uploadLogo {
  width: 40px;
  height: auto;
  opacity: 0;
}




#TicketuploadBtn {
  color: white;
  border: none;
  padding: 10px 10px;
  margin-top: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 19px;
  margin-bottom: 20px;
}

#TicketuploadBtn:hover {
  background-color: #3c64a0;
}

#TicketuploadBtn:active {
  transform: scale(0.9);
}





.modal {
  display: none;
  position: fixed;
  z-index: 999;
  right: 0; left: 0; top: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  direction: rtl;
  font-family: 'Vazir';
}
.modal-content {
  background: rgba(45, 55, 72, 0.3); /* ✅ رنگ تیره با شفافیت */
  backdrop-filter: blur(10px);       /* ✅ افکت شیشه‌ای */
  -webkit-backdrop-filter: blur(10px); /* برای پشتیبانی از Safari */
  padding: 20px 20px 90px 20px;
  border-radius: 12px;
  width: 80%;
  height: 70%;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #ffffff;
  font-size: 22px;
  max-width: 800px;
  justify-content: center;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2); /* ✅ برای برجسته‌تر شدن لبه‌ها */
}



.modal-body {
  flex: 1;
  overflow-y: auto;
  text-align: right;
  padding-left: 10px;
  padding-right: 10px;
}

.modal-actions {
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.modal-actions button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 24px;
}

#confirmBtn {
  background-color: #0D47A1;
  color: white;
}

#cancelBtn {
  background-color: #f44336;
  color: white;
}



#editCustomerForm button {
  width: 250px;
  font-size: 20px;
}

#editCustomerForm label {
  margin-bottom: 20px;
  margin-top: 30px;

}

.hidden {
  display: none;
}

#socialFields input {
  margin-top: 10px;
  font-size: 18px;
}

#phoneFields input {
  margin-top: 10px;
  font-size: 18px;
}


.presentation-method-toggle {
  display: flex;
  gap: 20px;
  

}

.presentation-method-toggle input[type="radio"] {
  display: none; 
}

.presentation-method-toggle label {
  padding: 10px 20px;
  border: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  background-color: white;
  color: #000000;
  transition: all 0.3s ease;
  user-select: none;
  width: 90px;
}

.presentation-method-toggle input[type="radio"]:checked + label {
  background-color: #0D47A1;
  color: white;
}
.modal-body {
  overflow-y: auto;          
  -ms-overflow-style: none;  
  scrollbar-width: none;     
}

.modal-body::-webkit-scrollbar {
  display: none;            
}

#closeModalBtn {
  display: none;
}

.date-fields {
  display: flex;
  gap: 10px;
}

.date-fields input {
  width: 60px;
  padding: 6px;
  font-size: 14px;
  text-align: center;
}





#scoreTable {
  width: 100%;
  min-width: 300px;
  max-width: 500px;
  font-size: 30px;
}



#dashboard {
  max-width: 800px;
  justify-content: center;
  margin: 0 auto;
}




.edit-customer-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px 0;
  overflow-x: hidden;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 5px;
}

.form-group input,
.form-group select {
  padding: 8px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #2196f3;
  outline: none;
}

.add-btn {
  align-self: flex-start;
  background-color: #2196f3;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background-color 0.3s;
}

.add-btn:hover {
  background-color: #1976d2;
}

.social-input {
  margin-top: 6px;
}


.customer-card {
  position: relative;
  transition: 0.3s ease;
  cursor: pointer;
}

.customer-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.card-header {
  position: absolute;
  top: 8px;
  left: 8px;
}

.badge {
  background-color: #ff9800;
  color: #fff;
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 5px;
}

.form-group {
  margin-bottom: 12px;
  text-align: right;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}

.presentation-method label {
  margin-right: 15px;
  font-weight: normal;
}










#finance {
  padding: 30px 20px;
  border-radius: 12px;
  margin: 40px auto;
  max-width: 800px;
}

#finance {
  overflow-y: auto;         
  -ms-overflow-style: none;   
  scrollbar-width: none;   
}

#finance::-webkit-scrollbar {
  display: none;         
}

#finance h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
  font-family: 'Vazir';
}

.finance-actions {
  text-align: center;
  margin-bottom: 10px;
}

#editAccountBtn {
  padding: 8px 6px;
  width: 250px;
  background-color: #0D47A1;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.3rem;
  cursor: pointer;
  font-weight: bold;
  font-family: 'Vazir';
}

#editAccountBtn:hover {
  background-color: #005fa3;
}

.finance-table-wrapper {
  overflow-x: auto;
}

.finance-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  direction: rtl;
}

.finance-table th, .finance-table td {
  padding: 12px 10px;
  border: 1px solid #ccc;
}

.finance-table thead {
  background-color: #eeeeee;
}

.finance-table tbody tr:nth-child(even) {
  background-color: #f5f5f5;
  color: #000;
}



.account-edit-form {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
  padding: 0 20px;
  border: 1px solid #ccc;
  margin-top: 15px;
}

/* حالت باز شده */
.account-edit-form.show {
  max-height: 200px; /* عدد کافی برای فرم، قابل افزایش در صورت نیاز */
  opacity: 1;
  padding: 20px;
}

.account-edit-form input {
  width: 90%;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #aaa;
  direction: ltr;
  font-family: 'Vazir';
}

.form-actions {
  display: flex;
  justify-content: space-between;
}

.form-actions button {
  padding: 6px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#confirmEditBtn {
  background-color: #0D47A1;
  color: white;
  font-family: 'Vazir';
}


#cancelEditBtn {
  background-color: #f44336;
  color: white;
}

.hidden {
  display: none;
}
    

.current-account-info {
  margin-top: 10px;
  padding: 10px;
  border-radius: 6px;
  font-family: 'Vazir';
  font-size: 1rem;
  direction: rtl;
}

.current-account-info p {
  margin: 5px 0;
}

















































.ai-help-popup {
  position: absolute;
  top: -50px;
  right: 110px;
  background-color: #cde932;
  color: #000;
  padding: 8px 22px;
  border-radius: 40px;
  font-size: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  font-family: 'Vazir', sans-serif;
  z-index: 2000;
}

.ai-help-popup.visible {
  opacity: 1;
  transform: translateY(-5px);
  pointer-events: auto;
  cursor: pointer;
}



#customers {
  max-width: 800px;
  justify-content: center;
  margin: 0 auto;
}


#notif h2 {
  font-size: 1.6rem;
  font-family: 'Vazir';
  direction: rtl;
}

#notif {
  max-width: 800px;
  justify-content: center;
  margin: 0 auto;
}



#score {
  max-width: 800px;
  justify-content: center;
  margin: 0 auto;
}





#notif h2{
  text-align: center;
}

#tools h2 {
  text-align: center;
  font-family: 'Vazir';
  font-size: 1.9rem;
  direction: rtl;
}

#dashboard h2 {
  text-align: center;
  font-family: 'Vazir';
  font-size: 1.9rem;
  direction: rtl;
}

#score h2 {
  text-align: center;
  font-family: 'Vazir';
  font-size: 1.9rem;
  direction: rtl;
}

#customers h2 {
  text-align: center;
  font-family: 'Vazir';
  font-size: 1.9rem;
  direction: rtl;
}

#data h2 {
  text-align: center;
  font-family: 'Vazir';
  font-size: 1.9rem;
  direction: rtl;
}



.ticket-item {
    margin-bottom: 30px; /* فاصله عمودی بین باکس‌ها */
}







/* وقتی صفحه مات می‌شود */
body.blur-background {
  filter: blur(5px);
  pointer-events: none; /* غیر فعال کردن تعامل با صفحه */
}

/* استایل باکس موفقیت */
.success-message {
  position: fixed;
  left: 50%;
  display: none;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 20px;
  direction: rtl;
  overflow-y: auto;
  border-radius: 8px;
  width: 100%;
  height: 100%;
  text-align: center;
  z-index: 10000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#successMessage h3 {
  font-size: 1.7rem;
  font-family: 'Vazir';


}
#successMessage p {
  font-size: 1.4rem;
  font-family: 'Vazir';
  margin: 40px 40px 20px 40px;


}
/* دکمه تایید */
#closeMessageBtn {
  background: linear-gradient(45deg, #2196F3, #21CBF3);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.4rem;
  font-family: 'Vazir';  transition: background 0.3s ease;
  font-family: 'Vazir';

}

/* تغییر رنگ دکمه هنگام هاور */
#closeMessageBtn:hover {
  background: linear-gradient(45deg, #1976D2, #64B5F6);
}































.menu-auth-mobile {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  z-index: 99999;
}

.menu-auth-mobile li {
  opacity: 0;

  width: 120px;
  height: 45px;
  margin-top: 160px;
  margin-left: -472px;
  background-color: #000000;
  border: 1px solid #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 14px;
  transition: opacity 0.6s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.novone-text {
  /* اینجا استایل‌های دلخواهت رو بنویس */
  font-size: 300px;
  color: rgb(255, 255, 255);
  font-family: 'badkh';
  margin-left: 400px;
  margin-top: -140px;
}

.menu-auth-mobile li:hover {
  box-shadow: 0 0 20px 2px rgba(255,215,0,0.3);
  transform: scale(1.03);
}


.menu-auth-mobile li a {
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  font-family: 'Vazir';
}












.menu-auth-box-mobile {
  font-family: 'Vazir';
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}







  /* بوم اصلی */
  .map-wrapper {
    width: 100%;
    height: 100%;
    overflow: auto;
    scroll-behavior: smooth;
    position: relative;
    /* ✅ حذف اسکرول‌بار در همه مرورگرها */
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE و Edge قدیمی */
  }

  .map-wrapper::-webkit-scrollbar {
    display: none;                /* Chrome, Safari, Opera */
  }

  .map-container {
    background: linear-gradient(
      to top left, 
      #422381 0%,
      #020103 32%,
      #000000 75%,
      #4F1FAE 100%
    );
    transition: background 1.5s ease;  
    width: 2539px;
    height: 1873px;
    position: relative;
    margin: auto;
  }

  /* سکشن‌ها */
  .map-section {
    top: 736px;
    left: 970px;
    width: 600px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    position: absolute;
  }
  /* هر دکمه کلاس جدا */
  .btn-top {
    position: absolute;
    top: 200px;
    left: 240px;
    padding: 10px 30px;
    width: 250px;
    background: transparent;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Vazir';
    font-size: 1.5rem;
    z-index: 3;


  }
  .btn-top:hover { background: transparent; transform: scale(1.1); }

  .btn-bottom {
    position: absolute;
    top: 5px;
    left: 103px;
    width: 200px;
    font-size: 1.3rem;
    padding: 10px 20px;
    background: transparent;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Vazir';
    z-index: 3;


  }
  .btn-bottom:hover { background: transparent; transform: scale(1.1); }

  .btn-left {
    position: absolute;
    top: 340px;
    left: 52px;
    width: 200px;
    padding: 10px 20px;
    background: transparent;
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Vazir';
    font-size: 1.1rem;
    z-index: 3;


  }
  .btn-left:hover { background: transparent; transform: scale(1.1); }

  .btn-right {
    position: absolute;
    top: 95px;
    left: 82px;
    padding: 10px 20px;
    background: transparent;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Vazir';
    font-size: 1.2rem;
    z-index: 3;

  }
  .btn-right:hover { background: transparent; transform: scale(1.1); }


  /* دکمه برگشت ثابت */
  #global-back-btn {
    position: fixed;
    top: 20px;
    width: 160px;
    left: 20px;
    padding: 10px 20px;
    background: transparent;
    border-radius: 12px;
    color: #fff;
    border: 1px solid white;
    font-size: 18px;
    cursor: pointer;
    font-family: 'Vazir';
    display: none; /* اول مخفی باشه */
    z-index: 9999;
    transition: background 0.5s ease, transform 0.2s ease;  
  }

  #global-back-btn:hover { background: transparent; transform: scale(1.03); box-shadow: 0 0 20px 2px rgba(255,215,0,0.3); }


  .first-page {
    position: absolute;
    width: 700px;
    height: auto;
    margin-left: -250px;
    margin-top: 15px;
    z-index: 3;
  }















  .mouse-halo {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 990099;
  
    /* شبیه ابر طلایی */
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, rgba(255,215,0,0.05) 50%, rgba(255,215,0,0) 100%);
    filter: blur(20px); /* محو شدن بیشتر و حالت ابر */
  }


























































  .register-text {
    text-align: center;
    margin-top: 20px;
    font-family: 'Vazir';
    font-size: 1rem;
    color: #ccc;
    direction: rtl;
  }
  
  .register-text a {
    color: #ffe862;
    text-decoration: none;
    font-weight: bold;
    margin-right: 5px;
    font-size: 1.3rem;
    transition: 0.3s;
  }
  
  .register-text a:hover {
    color: #ffaa00;
    text-decoration: underline;
  }
  






















































  .custom-social-container {
    display: flex;
    gap: 70px;
    margin-top: 20px;
    position: relative;
  }
  

  
  /* پاپ‌آپ ایمیل */
  .custom-email-popup {
    display: none;
    position: absolute;
    top: 70px;
    margin-left: -100px;
    color: #ffcc00;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    font-size: 1rem;
    z-index: 100;
  }
  
  /* پاپ‌آپ تلگرام */
  .custom-telegram-popup {
    display: none;
    position: absolute;
    top: 65px;
    margin-left: 50px;
    background: transparent;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 100;
  }
  
  .custom-telegram-popup button {
    display: block;
    margin: 5px 0;
    width: 150px;
    padding: 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: 0.3s;
    font-family: 'Vazir';
  }
  
  .custom-btn-show {
    background: #ffcc00;
    color: #000;
  }

  .custom-btn-show:hover {
    background: #ffaa00;
  }
  
  .custom-btn-open {
    background: #00bfff;
    color: #fff;
  }

  .custom-btn-open:hover {
    background: #0099cc;
  }
  
  .custom-telegram-address {
    display: none;
    margin-top: 10px;
    font-size: 13px;
    color: #ccc;
    direction: ltr;
  }
  
  .custom-telegram-wrapper {
    position: absolute;
    left: 375px;
    top: 130px;
    z-index: 3;

  }

  .custom-email-wrapper {
    position: absolute;
    left: 310px;
    top: 71px;
    z-index: 3;

  }


  /* آیکن‌ها */
  .custom-icon-email, .custom-icon-telegram {
    width: 70px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    
  }
  .custom-icon-email:hover, .custom-icon-telegram:hover {
    transform: scale(1.1);
  }











  /* Ellipse 100 */
  .ellipse {
    position: absolute;
    width: 800px;
    height: 800px;
    left: -330px;
    top: -100px;
    z-index: 2;

    background: radial-gradient(50% 50% at 50% 50%, #363636 0%, rgba(40, 40, 40, 0.9) 25%, rgba(19, 19, 19, 0.8) 50%, rgba(12, 12, 12, 0.7) 75%, rgba(0, 0, 0, 0.6) 100%);
  }



























  .expandable-box {
    max-width: 500px;
    margin: 20px auto;
    font-size: 15px;
    line-height: 1.6;
    color: #ddd;
    direction: rtl;
  }
  
  /* متن با ارتفاع انیمیشنی (بدون مقدار ثابت) */
  .expandable-text {
    overflow: hidden;
    transition: max-height 0.45s ease;
    will-change: max-height;
  }
  
  /* دکمه دایره‌ای */
  .expand-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #444;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  .expand-toggle:hover { background: #666; }
  
  /* فلش */
  .arrow-icon { transition: transform 0.4s ease; }
  .expand-toggle.active .arrow-icon { transform: rotate(180deg); }
  
  /* هاور کلمه */
  .word-hover {
    display: inline-block;
    transition: transform 0.18s ease;
  }
  .word-hover:hover {
    transform: scale(1.08); /* بزرگ‌شدن خیلی کم */
  }
  
  














  .tech-link {
    color: #f5c518; /* زرد */
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);

  }
  
  .tech-link:hover {
    color: #ffd84d; /* زرد روشن‌تر */
    text-shadow: 0 0 15px rgba(255, 216, 77, 0.6);
  }















































  #section-right {
    top: 1300px; 
    left: 1800px;
  }

  #section-left {
    top: 200px; 
    left: 150px;
  }

  #section-bottom {
    top: 1400px; 
    left: 400px
  }

  #section-top {
    top: 200px; 
    left: 1750px;
  }































  /* حالت دسکتاپ */
  #global-back-btn svg {
    display: none;
  }




  #FirstPageMobile {
    opacity: 0;
  }

  #FirstPageDesktop {
    opacity: 1;
  }















  #loader{
    position:fixed; inset:0; background:#000; display:flex; justify-content:center; align-items:center; z-index:9999; transition:opacity 1s ease;
  }

  .container{
    width:100%;
    height:100%;
    position:relative;
    border-radius:10px;
    overflow:hidden;
  }

  .outer{
    position:absolute;
    left:50%;
    top:50%;
    transform: translate(-50%, -50%);
    animation: moveOuterToCenter 6s ease-in-out 1s forwards;
    will-change: transform;
  }

  .scale-wrap{
    display:flex;
    align-items:center;
    gap:14px;
    transform-origin: 85% center;
    animation: groupScale 6s cubic-bezier(.22,.9,.36,1) 1s forwards;
    will-change: transform;
  }

  .img1{
    width:120px;
    height:auto;
    display:block;
    object-fit:contain;
    animation: img1Fade 6s linear 1s forwards;
    will-change: opacity;
  }

  .img-stack{
    display:flex;
    gap: 1px;
    flex-direction:column;
    line-height:0;
    align-items:center;
    justify-content:center;
    margin-left: -29px;
    margin-top: -25px;
    box-shadow: none;
    animation:  box-shadow 1s ease-in-out;
    transition: gap 1s ease-in-out; /* تعریف ترنزیشن فقط یکبار */


  }
  /* حالت نهایی */
  .img-stack.expand {
    gap: 2px; /* همون مقداری که گفتی */
  }
  .img-stack img{
    margin-top: -1px;
    width:8px; 
    height:auto;
    display:block;
    object-fit:contain;
    will-change: transform;
    animation: flipLoop 3s ease-in-out 7s infinite;
    transform-origin: center center;
    backface-visibility: hidden;
  }

  
  .img-stack.glow {
    box-shadow: 0 0 50px gold;
    z-index: 9999999;
  }
  /* keyframes */
  @keyframes moveOuterToCenter {
    0%   { transform: translate(-50%, -50%); }
    40% { transform: translate(-200%, 300%); }
    100% { transform: translate(-743%, 451%); }
  }

  @keyframes groupScale {
    0%   { transform: scale(1); }
    100% { transform: scale(31); }
  }

  @keyframes img1Fade {
    0%   { opacity:1; }
    100% { opacity:0; }
  }

  @keyframes flipLoop {
    0%   { transform: scaleX(1); }
    50%  { transform: scaleX(-1); }
    100% { transform: scaleX(1); }
  }




  .plans {
    width: 600px;
    height: auto;
  }



 


  











































  /* 📱 نسخه موبایل */
  @media (max-width: 440px) {
    #FirstPageMobile {
      opacity: 1;
      width: 200px;
      height: auto;
      margin-top: 100px;
    }

    #FirstPageDesktop {
      opacity: 0;
    }

    .back-button {
      transform: translateX(-50%);
    }
    .map-container {
      width: 100%;
      height: 2400px;
      position: relative;
      margin: 0;
    }


    #section-right {
      top: 700px; 
      left: 0;
    }
  
    #section-left {
      top: 1100px; 
      left: 0;
    }
  
    #section-bottom {
      top: 1500px; 
      left: 0;
    }
  
    #section-top {
      top: 1900px; 
      left: 0;
    }

      /* سکشن‌ها */
    .map-section {
      top: 0;
      left: 0;
      width: 100%;
      height: 400px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      font-size: 12px;
      position: absolute;
    }


    .menu-auth-mobile li {
      width: 140px;
      margin-top: -100px;
      height: 35px;
      margin-left: -39.5px;
      background-color: #000000;
      border: 1px solid #ffffff;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 14px;
      transition: box-shadow 0.2s ease, transform 0.2s ease, opacity 1s ease-in;
      opacity: 0;
    }


    .menu-auth-mobile li a {
      color: white;
      text-decoration: none;
      font-size: 16px;
      font-family: 'Vazir';
    }

    .menu-auth-box-mobile {
      font-family: 'Vazir';
      position: relative;
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }

    .first-page {
      position: absolute;
      width: 200px;
      height: auto;
      margin-left: 0;
    }







    .btn-top {
      position: relative;
      top: 270px;
      left: 45%;
      transform: translateX(-50%);
      padding: 10px 30px;
      width: 250px;
      background: transparent;
      color: white;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: 0.3s;
      font-family: 'Vazir';
      font-size: 18px;
  
    }
    .btn-top:hover { background: transparent; transform: scale(1.03); }
  
    .btn-bottom {
      position: relative;
      top: 55px;
      left: 25%;
      transform: translateX(-50%);
      padding: 10px 30px;
      width: 250px;
      background: transparent;
      color: white;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: 0.3s;
      font-family: 'Vazir';
      font-size: 11px;
  
    }
    .btn-bottom:hover { background: transparent; transform: scale(1.03); }
  
    .btn-left {
      position: absolute;
      top: 270px;
      left: 80%;
      transform: translateX(-50%);
      width: 200px;
      padding: 10px 20px;
      background: transparent;
      color: rgb(255, 255, 255);
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: 0.3s;
      font-family: 'Vazir';
      font-size: 13px;
  
    }
    .btn-left:hover { background: transparent; transform: scale(1.03); }
  
    .btn-right {
      position: absolute;
      top: 230px;
      left: 70%;
      transform: translateX(-50%);
      padding: 10px 20px;
      background: transparent;
      color: white;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: 0.3s;
      font-family: 'Vazir';
      font-size: 17px;
  
    }
    .btn-right:hover { background: transparent; transform: scale(1.03); }
  
  





    .expandable-box {
      max-width: 90%;
      margin: 20px auto;
      font-size: 15px;
      line-height: 1.6;
      color: #ddd;
      direction: rtl;
    }






    /* بوم اصلی */
    .map-wrapper {
      width: 100%;
      height: 100%;
      overflow-x: hidden;
      overflow-y: auto;
      scroll-behavior: smooth;
      position: relative;
      /* ✅ حذف اسکرول‌بار در همه مرورگرها */
      scrollbar-width: none;        /* Firefox */
      -ms-overflow-style: none;     /* IE و Edge قدیمی */
    }

    .map-wrapper::-webkit-scrollbar {
      display: none;                /* Chrome, Safari, Opera */
    }



    #global-back-btn {
      top: 85%;
      width: 50px;
      height: 50px;
      padding: 0;
      border-radius: 50%;
      font-size: 0; /* متن رو پنهان کن */
      display: flex;
      justify-content: center;
      align-items: center;
    }

    #global-back-btn svg {
      margin-left: 12px;
      display: block;
      width: 24px;
      height: 24px;
      fill: #fff; /* رنگ فلش */
    }




    .custom-social-container {
      display: flex;
      gap: 50px;
      margin-top: 20px;
      position: relative;
    }

    /* پاپ‌آپ ایمیل */
    .custom-email-popup {
      display: none;
      position: absolute;
      top: 200px;
      margin-left: 0;
      left: 50%;
      transform: translateX(-50%);
      color: #ffcc00;
      padding: 8px 12px;
      border-radius: 8px;
      white-space: nowrap;
      box-shadow: 0 4px 12px rgba(0,0,0,0.4);
      font-size: 1.3rem;
      z-index: 100;
    }
    
    /* پاپ‌آپ تلگرام */
    .custom-telegram-popup {
      display: none;
      position: absolute;
      top: 150px;
      margin-left: 0;
      left: 50%;
      transform: translateX(-50%);
      background: transparent;
      padding: 10px;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.4);
      z-index: 100;
    }

























    #loader{
      position:fixed; inset:0; background:#000; display:flex; justify-content:center; align-items:center; z-index:9999; transition:opacity 1s ease;
    }
  
    .container{
      width:100%;
      height:100%;
      position:relative;
      border-radius:10px;
      overflow:hidden;
    }
  
    .outer{
      position:absolute;
      left:50%;
      top:50%;
      transform: translate(-50%, -50%);
      animation: moveOuterToCenter 6s ease-in-out 1s forwards;
      will-change: transform;
    }
  
    .scale-wrap{
      display:flex;
      align-items:center;
      gap:14px;
      transform-origin: 85% center;
      animation: groupScale 6s cubic-bezier(.22,.9,.36,1) 1s forwards;
      will-change: transform;
    }
  
    .img1{
      width:120px;
      height:auto;
      display:block;
      object-fit:contain;
      animation: img1Fade 6s linear 1s forwards;
      will-change: opacity;
    }
  
    .img-stack{
      display:flex;
      flex-direction:column;
      line-height:0;
      align-items:center;
      justify-content:center;
      margin-left: -29px;
      margin-top: -25px;
    }
  
    .img-stack img{
      margin-top: -1px;
      width:8px; 
      height:auto;
      display:block;
      object-fit:contain;
      will-change: transform;
      animation: flipLoop 3s ease-in-out 7s infinite;
      transform-origin: center center;
      backface-visibility: hidden;
    }
  
    /* keyframes */
    @keyframes moveOuterToCenter {
      0%   { transform: translate(-50%, -50%); }
      40% { transform: translate(-200%, 40%); }
      100% { transform: translate(-297%, 70%); }
    }
  
    @keyframes groupScale {
      0%   { transform: scale(1); }
      100% { transform: scale(17); }
    }
  
    @keyframes img1Fade {
      0%   { opacity:1; }
      100% { opacity:0; }
    }
  
    @keyframes flipLoop {
      0%   { transform: scaleX(1); }
      50%  { transform: scaleX(-1); }
      100% { transform: scaleX(1); }
    }
  
  
  
  
  
  
  
    /* حالت اولیه */
    .img-stack {
      gap: 0px;
      transition: gap 2s ease; /* تعریف ترنزیشن فقط یکبار */
    }
  
    /* حالت نهایی */
    .img-stack.expand {
      gap: 2px; /* همون مقداری که گفتی */
    }













    .custom-telegram-wrapper {
      position: absolute;
      left: 55%;
      top: 323px;
      z-index: 3;
  
    }
  
    .custom-email-wrapper {
      position: absolute;
      left: 56%;
      top: 371px;
      z-index: 3;
  
    }
  
  
    /* آیکن‌ها */
    .custom-icon-email, .custom-icon-telegram {
      width: 40px;
      height: auto;
      cursor: pointer;
      transition: transform 0.3s ease;
      
    }
    .custom-icon-email:hover, .custom-icon-telegram:hover {
      transform: scale(1.1);
    }
  
  
  

    #login {
      margin-left: 0;
      margin-right: 0;
      justify-items: center;
      z-index: 1000;
      
    }
    
    #loginForm {
      width: 70%;
      min-width: 200px;
      max-width: none;  
    
    }
  
  
  
  
  
  
    /* Ellipse 100 */
    .ellipse {
      position: absolute;
      width: 800px;
      height: 800px;
      left: -330px;
      top: -100px;
      z-index: 2;
  
      background: radial-gradient(50% 50% at 50% 50%, #363636 0%, rgba(40, 40, 40, 0.9) 25%, rgba(19, 19, 19, 0.8) 50%, rgba(12, 12, 12, 0.7) 75%, rgba(0, 0, 0, 0.6) 100%);
    }



    .plans {
      width: 250px;
      height: auto;
    }




  }


























































