*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --label-color: #000000;
  --secondary-text: #555555;
  --card-bg: #ffffff;
  --border-color: #dddddd;
  --input-bg: #ffffff;
  --primary-color: #000000;
  --primary-hover: #333333;
  --bg-body-color: ghostwhite;
  --menu-bg: #ffffff;
  --veil-bg: #ffffff;
  --scroll-bg: #ffffff;
  --scroll-thumb: #000000;
  --button-text: #ffffff;
  --button-border: #000000;
  --footer-bg: #000000;
  --footer-text: #ffffff;
  --search-bg: rgba(255, 255, 255, 0.635);
  --modal-bg: rgba(0, 0, 0, 0.5);
  --opposite-color: #ffffff !important;
  --blur-background:  rgba(255, 255, 255, 0.635);

  --hover-color-li:rgba(0, 0, 0, 0.13);

  /* Theme Colors - Default (Current Theme) */
  --theme-primary: #000000;
  --theme-bg: #ffffff;
  --theme-text: #000000;
  --theme-card: #ffffff;
  --theme-border: #dddddd;
  --theme-hover: #333333;
  --theme-accent: #000000;
}

.darkmode {
  --bg-color: #161616;
  --text-color: #ffffff;
  --label-color: #ffffff;
  --secondary-text: #aaaaaa;
  --card-bg: #111111;
  --border-color: #333333;
  --input-bg: #111111;
  --primary-color: #ffffff;
  --primary-hover: #cccccc;
  --bg-body-color: #161616;
  --menu-bg: #161616;
  --veil-bg: #161616;
  --scroll-bg: #ffffff;
  --opposite-color:#000000 !important;
  --blur-background:  rgba(22, 22, 22, 0.8);
  --hover-color-li:rgba(255, 255, 255, 0.13);
  --scroll-thumb: #ffffff;
  --button-text: #000000;
  --button-border: #ffffff;
  --footer-bg: #161616;
  --footer-text: #ffffff;
  --search-bg: rgba(22, 22, 22, 0.8);
  --modal-bg: rgba(0, 0, 0, 0.7);
}

/* Settings Modal Styles */
.settings-modal {
  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: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.settings-modal.active {
  opacity: 1;
  visibility: visible;
}

.settings-modal-content {
  background-color: var(--card-bg);
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

/* Settings modal background follows profile background in light mode */
body:not(.darkmode) .settings-modal-content {
  background-color: var(--profile-bg) !important;
}

.settings-modal.active .settings-modal-content {
  transform: scale(1);
}

.settings-modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.settings-modal-header h2 {
  margin: 0;
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 600;
}

.settings-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-color);
  padding: 5px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.settings-modal-close:hover {
  background-color: var(--hover-color-li);
}

.settings-modal-body {
  padding: 25px;
}

.settings-section {
  margin-bottom: 30px;
}

.settings-section h3 {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.theme-option {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  background-color: var(--card-bg);
}

.theme-option:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.theme-option.selected {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: var(--opposite-color);
}
.darkmode .theme-option.selected {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white or your accent color */
  color: var(--text-color); /* Use theme text color */
  border-color: var(--primary-color); /* Keep border */
}


.theme-option .theme-name {
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-color);
}

.theme-preview {
  display: flex;
  gap: 3px;
  justify-content: center;
  margin-bottom: 8px;
}

.color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

.custom-colors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.color-picker-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.color-picker-group label {
  font-size: 0.9rem;
  color: var(--text-color);
  font-weight: 500;
}

.color-input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  background-color: var(--input-bg);
}

.settings-modal-footer {
  padding: 20px 25px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.settings-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.settings-btn-primary {
  background-color: var(--primary-color);
  color: var(--opposite-color);
}

.settings-btn-primary:hover {
  background-color: var(--primary-hover);
}

.settings-btn-secondary {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.settings-btn-secondary:hover {
  background-color: var(--hover-color-li);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .settings-modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .settings-modal-header,
  .settings-modal-body,
  .settings-modal-footer {
    padding: 15px 20px;
  }

  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .custom-colors {
    grid-template-columns: 1fr;
  }
}

body{
  background-color: var(--bg-body-color) !important;
  color: var(--text-color);
}

/* Apply theme colors to footer - light mode only */
body:not(.darkmode) footer {
  background-color:white;
  color: white;
}

body:not(.darkmode) footer a,
body:not(.darkmode) footer h5,
body:not(.darkmode) footer .h33 {
  color: white ;
}

body:not(.darkmode) footer .a2:hover {
  color: white;
}

/* Apply theme colors to additional elements */
.auth-container {
  background-color: var(--bg-color) !important;
}

.auth-wrapper {
  background-color: var(--card-bg) !important;
  color: var(--text-color) !important;
}

.auth-wrapper * {
  color: var(--text-color) !important;
}

.auth-btn {
  background-color: var(--primary-color) !important;
  color: var(--opposite-color) !important;
}

.auth-btn:hover {
  background-color: var(--primary-hover) !important;
}

.switch-link {
  color: var(--primary-color) !important;
}

.switch-link:hover {
  color: var(--primary-hover) !important;
}

/* Accent color application for light mode only */
body:not(.darkmode) .button:hover {
  border-color: var(--theme-accent) !important;
}

body:not(.darkmode) .button2:hover {
  border-color: var(--theme-accent) !important;
}

body:not(.darkmode) .order:hover {
  border-color: var(--theme-accent) !important;
}

body:not(.darkmode) .card:hover {
  border-color: var(--theme-accent) !important;
}

/* Link hover effects with accent color */
body:not(.darkmode) a:hover {
  color: var(--theme-accent) !important;
}

/* Settings modal close button hover */
body:not(.darkmode) .settings-modal-close:hover {
  background-color: var(--theme-accent) !important;
}

/* Search input focus accent */
body:not(.darkmode) .search-input:focus,
body:not(.darkmode) #search:focus {
  border-bottom-color: var(--theme-accent) !important;
}

/* Theme option hover effect */
body:not(.darkmode) .theme-option:hover {
  border-color: var(--theme-accent) !important;
}

/* Keep your global light mode rules */
:not(.darkmode)::-webkit-scrollbar-thumb {
  background-color: var(--primary-color) !important;
}
:not(.darkmode)::-webkit-scrollbar {
  background-color: var(--bg-body-color) !important;
}

/* Add these dark mode overrides AFTER the light mode rules */
.darkmode ::-webkit-scrollbar-thumb {
  background-color: #ffffff !important; /* White thumb for dark mode */
}





/* Page-up button accent color in light mode */
body:not(.darkmode) .page-up {
  background-color: var(--primary-color) !important;
}

/* Update theme application to include footer and body */



#register{
  transition: 0.4s ease-in-out;
  cursor: pointer;

}

#bow{
  transition: 0.4s ease-in-out;

}



#nav{
  transition: 0.4s ease-in-out;

}






body{
  display: flex;
  justify-content: center;
 /* height: 10000px; */
  background-color: #f1f1f1;
  transition: 0.4s ease-in-out;


  
  
}

main{
  display: flex;
  flex-direction: column;
  width: 100%;
  /* height: 100%; */
  /* border: 1px solid black; */
  /* background-color: blueviolet; */


  
  
}

nav{
  width: 100%;
  height: 53px;
 border-bottom: 1px solid var(--primary-color);
 background-color: var(--bg-color) !important;
 position: fixed;
 display: flex;
 justify-content: space-between;
 align-items: center;
 z-index: 8;


}



a{
  text-decoration: none;
}

 .li1 {
 list-style-type: none;
 padding: 16px 20px ;
 position: relative;
 /* top: 6.9px; */
 left: 50px;
 display: flex;
 font-family: Verdana, Geneva, Tahoma, sans-serif;
 font-variant: small-caps;
 transition: 0.5s ease-in-out;


 


}

.bi-down{
position: relative;
right: -10px;
top: 3.5px;
transition: 0.3s ease-in-out;
}

/* .bi-up{
  position: relative;
  right: -10px;
  top: 3.5px;
  transform: rotate(180deg);
  transition: 0.4s ease-in-out;
} */

.li2 {
  list-style-type: none;
  padding: 16px 20px ;
  position: relative;
  /* top: 6.9px; */
  left: 50px;
  transition: 0.5s ease-in-out;

 
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-variant: small-caps;
 
  
 
 
 }



 .li3 {
 
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-variant: small-caps;
 
  
 
 
 }
 
 .li4 {

   font-family: Verdana, Geneva, Tahoma, sans-serif;
   font-variant: small-caps;
  
   
  
  
  }

ul{
  display: flex;
  
}


#scroll-progress {
  position: absolute;
    bottom: -4px;
    right: 0;/* شروع از چپ در زبان فارسی */
    width: 0%; /* عرض اولیه صفر */
    height: 3px; /* ارتفاع نوار */
    background: var(--primary-color); /* استفاده از متغیر درست */
    z-index: 2; /* روی تمام عناصر هدر قرار بگیرد */
    transition: width 0.1s ease-out; /* حرکت نرم */
    box-shadow: 0 0 10px var(--primary-color); /* درخشش نوار */
}







.bow
{
  width: 12%;
  height: 100%;
  border-left: 1px solid var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  /* background-color: aqua; */
  float: left;
}






.register {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  height: 80%;
  background-color: var(--primary-color);
  color: var(--bg-color);
  font-family: vazirmatn, sans-serif !important;
  font-variant: small-caps;
  font-size: small;
  border-radius: 8px;
  border: none;
  text-align: center;
  line-height: 80%; /* Adjust this value to vertically center the text */
  text-decoration: none;
  transition: 0.4s ease-in-out;
  cursor: pointer;
}

.register:hover {
  border: 1px solid var(--button-border) !important;
  background-color: var(--opposite-color);
  color: var(--text-color);
  transition: 0.4s;
}

.li1:hover{

 border-bottom: 1px solid var(--primary-color);
 /* height: 57px; */

  
}

.li1:hover{
transition: 0.5s;
 background-color: var(--hover-color-li) !important;
  /* height: 57px; */
 
   
 }


 .li2:hover{
  transition: 0.5s;
   background-color: var(--hover-color-li);
    /* height: 57px; */
   
     
   }

.li2:hover{

  border-bottom: 1px solid var(--primary-color);
  /* height: 57px; */
   
 }

 



  #menu-box{
  width: 93%;
  height: 60px;
  border: 1px solid var(--primary-color) !important;
  background-color: var(--veil-bg);
  display: flex;
 position: fixed;
 z-index: 3;
 top: 82px;
 /* opacity: 0; */
 /* height: 0 !important; */
 left: 33px;
 border-radius: 0 0 15px 15px;
 justify-content: center;
 align-items: center;
 display: none;
 /* transition: opacity 1s , height 1s; */


 
 

  
 }










::-webkit-scrollbar{
  border-left: 1px solid var(--primary-color);
  background-color: var(--bg-body-color);
  color: var(--text-color);

}

::-webkit-scrollbar-thumb{
  background-color: var(--scroll-thumb);

}



.span{
  width: 40px;
  height: 30px;
  background-color: transparent;
  border: 2px solid gray;
  justify-content: center;
  align-items: center;
  position: relative;
  left: 4%;
  cursor: pointer;
  display: flex;
  color: var(--primary-color);
}

.span:hover{
  background-color: var(--primary-color);
  color: var(--opposite-color);
}




#myMenu {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1 ;
  top: 0;
  right: 0;
background-color: var(--bg-color);  
/* overflow-x: hidden; */
border-bottom: none !important;
  transition: 0.5s;
  /* padding-top: 60px; */
  display: flex;
  /* align-items: center; */
  /* opacity: 0.98; */
  z-index: 9;
  color: var(--text-color);
  flex-direction: column;
}

.lb{
  width: 100%;
  height: 70px ;
  border-bottom: 1px solid var(--primary-color);
  color: var(--text-color);
  justify-content: start;
  display: flex;
  cursor: pointer;
  align-items: center;
  transition: 0.4s ease-in-out;
}

.lb3{
  width: 100%;
  height: 70px ;
  color: #4CAF50;
  border-bottom: #4CAF50 1px solid;
  /* background-color: #f1f1f1; */
  justify-content: start;
  display: flex;
  cursor: pointer;
  align-items: center;
  transition: 0.4s ease-in-out;
}

.lb2{
  width: 50px !important;
  height: 10%; 
  left: 65%;
  position: relative;
background-color: black;
  border-bottom: 1px solid black;
  border-left: 1px solid black;
  justify-content: center;
  align-items: center;
  display: flex;
  cursor: pointer;
  transition: 0.4s ease-in-out;
}

.lb2:hover {

  background-color: black;
  color: white;
  transition: 0.4s ease-in-out;

}




.close{
  color: white;
  
  display: none;
}



.lb:hover{
  background-color: var(--hover-color-li);
  transition: 0.4s;

}

.lb3:hover{
  background-color: var(--hover-color-li);
  transition: 0.4s;

}

#overlay {
  position: fixed;
  display: none;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  background-color: rgba(0, 0, 0, 0.5);
}



#overlay2 {
  position: fixed;
  width: 100%;
  height: 0;
  z-index: 6;
  background-color: rgba(0, 0, 0, 0.5);
  transition: 0.5s ease-in-out;
}






#openmenu{
  height: 0%;
  width: 0%;
  position: fixed;
  overflow-y: auto;

  z-index: 1;
  top: 0;
  right: 0;
background-color: var(--bg-color);  
/* overflow-x: hidden; */
border-left: 1px solid var(--primary-color);
  transition: 0.5s;
  /* padding-top: 60px; */
  
  display: flex;
align-items: center;  /* display: none; */
  /* align-items: center; */
  /* opacity: 0.98; */
  z-index: 10;
  color: #fff;
  flex-direction: column;
}



.veil2{
  width: 93%;
  height: 60px;
  border: 1px solid var(--primary-color) !important;
  background-color: var(--bg-body-color) !important;
  display: flex;
 position: fixed;
 z-index: 3;
 top: 82px;
 /* opacity: 0; */
 /* height: 0 !important; */
 left: 33px;
 border-radius: 0 0 15px 15px !important;
justify-content: center;
align-items: center;
 transition: 0.5s ease-in-out;
 font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 font-variant: normal;

 /* transition: opacity 1s , height 1s; */
}

 .search{
  display: flex;
  justify-content: center;
  align-items: start;
  position: sticky;
  position: -webkit-sticky;
    width: 0%;
  height: 0%;
  z-index: 1;
  top: 0;
  backdrop-filter: blur(10px );
  -webkit-backdrop-filter: blur(10px );

 }

 .search-mobile{
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: start;
  position: sticky;
  color: black;
  position: -webkit-sticky;
  
  z-index: 1;
  top: 0;
  backdrop-filter: blur(10px );
  -webkit-backdrop-filter: blur(10px );
  width: 100%;
  height: 60px;
 }

 
 .close {
  position: relative; /* or relative, depending on your layout */
cursor: pointer;
  width: 10%;
  height: 100%;
  background-color: black;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10; /* Ensure it is above other elements */
}

body:not(.darkmode) .close {
  background-color: var(--primary-color);
}

.arrow-close{
  color: white;
  transition: 0.4s ease-in-out;
}

.close:hover .arrow-close{
  color: red;
  transition: 0.4s ease-in-out;
}
.search-input::placeholder
{
  position: relative;
  right: 5px;
}

 .search-input{
  display: none;
  position: sticky;
  position: -webkit-sticky;
  z-index: 1;
  padding-right: 20px;
 
  background: transparent;
  height: 70%;
  width: 70% ;
  font-size: normal;
  text-align: right;
  outline: none;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-variant: small-caps;
  color: var(--text-color);
  cursor: pointer;
  display: block;
  position: sticky;
  z-index: 1;
  border-radius: 0 !important;
  border-bottom: 1px solid var(--primary-color);
  border-top: none;
  border-left: none;
  border-right: none;
  transition: 0.2s ease-in-out;


 }

 

 #search{
  display: none;
  position: sticky;
  position: -webkit-sticky;
  z-index: 1;
 
  background: transparent;
  border: none;
  background: none;
  height: 70%;
  width: 60% ;
  font-size: normal;
  text-align: right;
  outline: none;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-variant: small-caps;
  color: var(--text-color);
  cursor: pointer;
  transition: 0.2s ease-in-out;
border-radius: 0 !important;
  border: none;
 }

 

 ::-webkit-search-cancel-button{
  -webkit-appearance: none;
  height: 30px;
  width: 30px;
  background-size: contain;
  cursor: pointer;

 }



#menu-box:hover .veil2 {
  width: 93%;
  height: 600px;
  border: 1px solid black;
  background-color: white;
  display: flex;
 position: fixed;
 z-index: 3;
 top: 82px;
 flex-direction: column;
 justify-content: start;
 cursor: context-menu;
 transition: 0.5s ease-in-out;


 /* opacity: 0; */
 /* height: 0 !important; */
 left: 33px;
 border-radius: 0 0 0px 15px !important;
 /* justify-content: center; */

overflow: auto;
#search{
  display: block;
  position: sticky;
  z-index: 1;
  border-bottom: 1px solid var(--primary-color);

  
}

.search{
  display: flex;
  position: sticky;
  width: 100%;
  height: 10%;
  
}
.select{
  display: flex !important;
}
}



.veil2:hover .down{
  display: none;
}

.parent{
  display: none;
}


.veil2:hover .parent{
  width: 100%;
  height: 300px;
  /* background-color: black; */
  transition: 0.5s ease-in-out;
  position: relative;
  top: 10px;

  display: flex;
  justify-content: left;
  flex-wrap: wrap;

  column-gap: 40px;

 
}












.parent-mobile{
  
  /* display: none; */
  width: 0%;
  height: 0% ;
  /* background-color: black; */
  transition: 0.5s ease-in-out;
  top: 10px ;
  font-size: small !important;
  position: relative;

  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: row;

  row-gap: 20px;
}

.box-mobile {
  font-size: small !important;
  position: relative;
  color: var(--text-color);
  width: 46%;
  height: 100%;
  transition: 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.box2-mobile {
  font-size: small !important;
  width: 100%;
  height: 50%;
  transition: 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: 20px !important;
  
  /* Changed from space-between */
  padding: 8px 0; /* Add consistent padding */
}

.h4 {
  color: var(--text-color) !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  margin: 5px 0 !important; /* Reduce margin */
  line-height: 1.2 !important;
}


.box-2-mobile {
  font-size: small !important;
  border-radius: 0 !important;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  cursor: pointer;
  display: flex;
  overflow: hidden;
  transition: 0.5s ease-in-out;
  margin-bottom: 5px; /* Add small gap */
}


#h6 {
  color: var(--text-color) !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 9px !important;
  font-weight: 400 !important;
  margin: 3px 0 !important; /* Reduce margin */
  line-height: 1.1 !important;
  padding: 0 5px;
}


.swiper-slide h3 {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin: 0 !important;
  padding: 0 10px !important;
}

.box3-mobile {
  font-size: small !important;
  width: 100%;
  height: auto; /* Changed from 32% */
  transition: 0.5s ease-in-out;
  position: relative;
  margin: 10;
  padding: 0;
}
  
  .box-3-mobile {
    font-size: small !important;
    width: auto;
    max-width: fit-content;
    height: auto; /* Changed from 32% */
    transition: 0.5s ease-in-out;
    position: relative;
    top: 0; /* Changed from 7px */
    margin: 0;
    padding: 0;
  }
  
  .child-mobile{ 
    font-size: small !important;

    /* display: none; */
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0);
    transition: 0.3s ease-in-out;
  }
  
  .box-mobile:hover .child-mobile{
    background-color: rgba(0, 0, 0, 0.29) !important;
    color: white;
    transition: 0.3s ease-in-out;
  
  
    
  }
  
  
  
  .box-mobile:hover .box-3-mobile{
    border-bottom: 1px solid var(--primary-color);
    transition: 0.3s ease-in-out;
  
  }

  


.box{
  width: 25%;
  height: 100%;
  /* background-color: aqua; */
  transition: 0.5s ease-in-out;

  position: relative;
  left: 9.5%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
  cursor: pointer;
}

a{
  text-decoration: none !important;
}

.box2{
  width: 100%;
  height: 50%;
  /* background-color: green; */
  transition: 0.5s ease-in-out;



  
}

.box-2{
  width: 100%;
  /* background-color: green; */
  border-radius: 0 !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  cursor: pointer;
  display: flex;
  overflow:hidden;
  transition: 0.5s ease-in-out;


}

.box3{
width: 100%;
height: 32%;
/* background-color: bisque; */
font-size: 18px !important;
transition: 0.5s ease-in-out;


}

.box-3{
  height: auto;
  /* background-color: bisque; */
  transition: 0.5s ease-in-out;
  width: auto;
    max-width: fit-content;
    font-size: 20px !important;


  
  
  }

.child{
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(255, 255, 255, 0);
  transition: 0.3s ease-in-out;
}

.box:hover .child{
  background-color: rgba(0, 0, 0, 0.29) !important;
  color: white;
  transition: 0.3s ease-in-out;


  
}



.box:hover .box-3{
  border-bottom: 1px solid ;
  transition: 0.3s ease-in-out;

}





.container1{
  width: 100%;
  /* height: 100%; */
  /* background-color: green; */
  margin: auto;
 display: flex;
 gap: 10px;
align-items: center;
 flex-direction: column;
 
}

.child2{
  width: 100%;
  height: 550px !important;
  background-color: black ;
overflow: hidden;
opacity: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  animation:pp 3s ;
}

.child7{
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.child3{
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: 0.4s ease-in-out;
  animation:pp 5s ;

}

.child4{
  width: 100%;
  height: 100%;
  transition: 0.4s ease-in-out;
  

}
.child4:hover{
  background-color: rgba(0, 0, 0, 0.555);
  transition: 0.4s;
  transition-delay: 0.1s;
}

.child3:hover{
  transform: scale(1.2);
  transition: 0.4s ;
  transition-delay: 0.1s;

}



.button{
  width: 200px;
  cursor: pointer;
  height: 50px;
  font-family: vazirmatn, sans-serif !important;
  font-variant: small-caps;
  font-size: 20px;
  font-weight: bold;
  border: none;
  background-color: transparent;
  border: 1px solid white;
  color: white;
  border-radius: 5px;
  transition: 0.4s ease-in-out;


}

.button:hover{
  border: 1px solid rgba(255, 255, 255, 0.769);
  color: rgba(255, 255, 255, 0.769);
  transition: 0.4s ease-in-out;
}




.button3{
  width: 200px;
  cursor: pointer;
  height: 50px;
  font-family: vazirmatn, sans-serif !important;
  font-variant: small-caps;
  font-size: 20px;
  font-weight: bold;
  display: none;
  border: none;
  background-color: transparent;
  border: 1px solid white;
  color: white;
  border-radius: 5px;
  transition: 0.4s ease-in-out;


}

.button3:hover{
  border: 1px solid rgba(255, 255, 255, 0.769);
  color: rgba(255, 255, 255, 0.769);
  transition: 0.4s ease-in-out;
}

.detail{
  position: relative;
  bottom:350px;
  animation:an 3s;


}

@keyframes an{
  from{
    opacity: 0;
  }

  to{
    opacity: 1;
  }
}

@keyframes pp{
  from {
    width: 0%;
    opacity: 0;
  }

  to{
    width: 100%;
    opacity: 1;

  }
}




.real{
  width: 90%;
  height: 450px;
  /* background-color: black; */
  display: flex;
  gap: 30px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;

}

@keyframes load{
 
    from{
      scale: 0.9 0.9;
      opacity: 0.5;
    }
  
    to{
      scale: 1 1;
      opacity: 1;
    }
  

}

.real2{
  width: 50%;
  height: 100%;
  /* background-color: aqua; */
  display: flex;
  flex-direction: column;
  /* gap: 30px; */
  align-items: center;
justify-content: center;  
gap: 30px;
}

.real3{
width: 100%;
/* background-color: green; */
display: flex;
height: auto;
max-height: fit-content;
}

.real2-mobile-2{
  width: 50%;
  height: 100%;
  /* background-color: aqua; */
  display: flex;
  flex-direction: column;
  /* gap: 30px; */
  align-items: center;
justify-content: center;  
gap: 30px;
}

.real3-mobile-2{
width: 100%;
/* background-color: green; */
display: flex;
height: auto;
max-height: fit-content;
}


.real2-mobile{
  width: 50%;
  height: 100%;
  /* background-color: aqua; */
  display: flex;
  flex-direction: column;
  /* gap: 30px; */
  align-items: center;
justify-content: center;  
gap: 30px;
display: none;
}

.real3-mobile{
width: 100%;
/* background-color: green; */
display: flex;
height: auto;
max-height: fit-content;
display: none;
}



.sun{
color: var(--text-color);
  transition: none !important;
}




.button2{
  width: 200px;
  height: 50px;
  font-family: vazirmatn, sans-serif !important;
  font-size: 20px;
  font-weight: 100;
  border: none;
  background-color: transparent;
  /* border: 1px solid black; */
  color: var(--text-color);
  border-radius: 5px;
  cursor: pointer;
}


.button2:hover{
  border: 1px solid gray;

}


footer{
  position: relative;
  top: 350px;
  /* widsweth: 100%; */
  /* height: 350px; */
  background-color: black;
  display: flex;
}


.a2{
  text-decoration: none;
  list-style-type: none;
  color: white;
  width: auto;
  max-width: fit-content;

}



h5{
  position: relative;
  top: 10px;
  margin-top: 15px !important;
  font-weight: 100;
  left: 10px;
  width: auto;
  max-width: fit-content;
  font-weight:  400 !important;
  font-size: small;

}

.a2:hover{
  text-decoration: underline !important;
}

.parent-foot{
  width: 100%;
  height: 100%;
  background-color: black;
  display: flex;
  justify-content: start;
  align-items: center;
  flex-direction: column;
}

/* Apply footer background from theme - light mode only */
body:not(.darkmode) .parent-foot {
  background-color: var(--footer-bg) !important;
}

.box-foot{
  width: 30%;
  height: 85%;
  /* background-color: green; */
 
  
}







.box-foot-mobile{
  width: 100%;
  border-bottom: 1px solid white;
  height: 70px;
  
  /* background-color: green; */
  display: none;
  animation: step 2s alternate infinite linear;

 
  
}



.h33{
  color: white; 
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-weight: 900;
  font-variant: small-caps;
  font-style: italic;
}



.parent2-foot{
 width: 100%;
 height: 350px;
 /* background-color: aqua; */
 
}

.child-foot{
  width: 95%;
  height: 80%;
  /* border-bottom: 0.5px solid green; */
  display: flex;
  justify-content: center;
  animation: step 2s alternate infinite linear;
  

  
}

.mode{
  /* background-color: green; */
  border-radius: 100%;
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.2s ease-in-out;

}


@keyframes step{
  0%{
    border-bottom: 0.5px solid white;
  }

  50%{
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.594);

  }

  100%{
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.363);

  }
}

.child2-foot{
  width: 90%;
  height: 90%;
  position: relative;
  right: 10px;
  /* background-color: antiquewhite; */
  display: flex;
  justify-content: space-between;
  align-items: end;
}


.mylinks{
  display: none;
  opacity: 0;
}

.box-foot-mobile:hover .mylinks{
  display: flex;
  flex-direction: column;
  padding-left: 20px;
  max-height: fit-content;
  height: auto;
  background-color: #161616;
  width: 100%;
  height: auto;
  max-height: fit-content;
justify-content: center;
opacity: 1;
 
}

.box-foot-mobile:hover h5{
position: relative !important;
top: -5px !important; 
opacity: 1;
transition: 0.5s ease-in-out;
}



.box-foot-mobile:hover{
  height: auto !important;
  max-height: fit-content;


}

.down1{
  display: none;
}

.box-foot-mobile:hover .down1{
  display: inline;
}

.box-foot-mobile:hover .up1{
  display: none;
}

.order{
  width: 140px;
  height: 50px;
  background-color: black;
  border-radius: 17px;
  color: white;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-variant: small-caps;
  border: none;
  font-size: larger;
  cursor: pointer;
  border: 1px solid white;
  transition: 0.4s ease-in-out;

}

del{
  color: red !important;
}

.ord{
  width: 100%;
  height: 20%;
  /* background-color: rgba(255, 255, 255, 0.084);
   */
  display: flex;

  justify-content: space-around;
  align-items: center;
  mix-blend-mode: lighten;

}


.card{
  width: 50px;
  height: 50px;
  border-radius: 100%;
  background-color: black;
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid white;
  transition: 0.4s ease-in-out;
}

.card:hover{
  background-color: white;
  border: 1px solid black;
  color: black;
  transition: 0.4s ease-in-out;
}

.order:hover{
  background-color: white;
  border: 1px solid black;
  color: black;
  transition: 0.4s ease-in-out;
}

.ord h3{
  color: white;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-variant: small-caps;
}





.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex !important;
  flex-direction: column;
  align-items: end !important;
  justify-content: space-between !important;
}





.swiper {
  width: 95%;
  height: 300px;
  position: relative;
  top: 70px ;
}



.container20 {
  --uib-size: 60px;
  --uib-color: white;
  --uib-speed: 1.5s;
  --uib-dot-size: calc(var(--uib-size) * 0.1);
  position: relative;
  display: flex;
  align-items: center;

 
  height: calc(var(--uib-size) * 0.64);
  width: calc(var(--uib-size) * 0.64);
}



@keyframes jump {
  0%,
  100% {
    transform: translateY(120%);
  }

  50% {
    transform: translateY(-120%);
  }
}

.dot {
  --uib-d1: -0.48;
  --uib-d2: -0.4;
  --uib-d3: -0.32;
  --uib-d4: -0.24;
  --uib-d5: -0.16;
  --uib-d6: -0.08;
  --uib-d7: -0;
  position: absolute;
  bottom: calc(var(--uib-bottom) + var(--uib-dot-size) / 2);
  right: calc(var(--uib-right) + var(--uib-dot-size) / 2);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: var(--uib-dot-size);
  width: var(--uib-dot-size);
  animation: jump var(--uib-speed) ease-in-out infinite;
  opacity: var(--uib-scale);
  will-change: transform;
  
  backface-visibility: hidden;
}

.dot::before {
  content: '';
  height: 100%;
  width: 100%;
  background-color: var(--uib-color);
  border-radius: 50%;
  transform: scale(var(--uib-scale));
  transition: background-color 0.3s ease;
}

.dot:nth-child(1) {
  --uib-bottom: 24%;
  --uib-right: -35%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d1));
}
.dot:nth-child(2) {
  --uib-bottom: 16%;
  --uib-right: -6%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d2));
}
.dot:nth-child(3) {
  --uib-bottom: 8%;
  --uib-right: 23%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d3));
}
.dot:nth-child(4) {
  --uib-bottom: -1%;
  --uib-right: 51%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d4));
}
.dot:nth-child(5) {
  --uib-bottom: 38%;
  --uib-right: -17.5%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d2));
}
.dot:nth-child(6) {
  --uib-bottom: 30%;
  --uib-right: 10%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d3));
}
.dot:nth-child(7) {
  --uib-bottom: 22%;
  --uib-right: 39%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d4));
}
.dot:nth-child(8) {
  --uib-bottom: 14%;
  --uib-right: 67%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d5));
}
.dot:nth-child(9) {
  --uib-bottom: 53%;
  --uib-right: -0.8%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d3));
}
.dot:nth-child(10) {
  --uib-bottom: 44.5%;
  --uib-right: 27%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d4));
}
.dot:nth-child(11) {
  --uib-bottom: 36%;
  --uib-right: 55.7%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d5));
}
.dot:nth-child(12) {
  --uib-bottom: 28.7%;
  --uib-right: 84.3%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d6));
}
.dot:nth-child(13) {
  --uib-bottom: 66.8%;
  --uib-right: 15%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d4));
}
.dot:nth-child(14) {
  --uib-bottom: 58.8%;
  --uib-right: 43%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d5));
}
.dot:nth-child(15) {
  --uib-bottom: 50%;
  --uib-right: 72%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d6));
}
.dot:nth-child(16) {
  --uib-bottom: 42%;
  --uib-right: 100%;
  animation-delay: calc(var(--uib-speed) * var(--uib-d7));
}

.dot:nth-child(3) {
  --uib-scale: 0.98;
}
.dot:nth-child(2),
.dot:nth-child(8) {
  --uib-scale: 0.96;
}
.dot:nth-child(1),
.dot:nth-child(7) {
  --uib-scale: 0.94;
}
.dot:nth-child(6),
.dot:nth-child(12) {
  --uib-scale: 0.92;
}
.dot:nth-child(5),
.dot:nth-child(11) {
  --uib-scale: 0.9;
}
.dot:nth-child(10),
.dot:nth-child(16) {
  --uib-scale: 0.88;
}
.dot:nth-child(9),
.dot:nth-child(15) {
  --uib-scale: 0.86;
}
.dot:nth-child(14) {
  --uib-scale: 0.84;
}
.dot:nth-child(13) {
  --uib-scale: 0.82;
}

.container-load{
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
  z-index: 10000000000 !important; 
  transition: 0.5s ease-in-out;
}

.page-up{
  position: fixed;
  height: 50px ;
  width: 0;
  transition: 0.5s ease-in-out;
  background-color: var(--primary-color);
  bottom: 0;
  color: var(--opposite-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5 ;
  cursor: pointer;
  border-radius: 15px 0 0 0 ;
}





#lorem {
  transition: all 0.5s ease-in-out;
  opacity: 1;
}

#lorem2 {
  transition: all 0.5s ease-in-out;
  opacity: 1;
}

#lorem3 {
  transition: all 0.5s ease-in-out;
  opacity: 1;
}

#lorem.hidden {
  opacity: 0;
}

#lorem2.hidden {
  opacity: 0;
}

#lorem3.hidden {
  opacity: 0;
}

.button2 {
  transition: all 0.3s ease-in-out;
}

.hide{
  display: none;
}

.search2{
  display: flex;
 width: 70%;
  height: 70%;
  /* background-color: yellowgreen; */
  display: flex;
  justify-content: center;
  align-items: center;
  /* justify-self: center; */
  
}

 

.select{
  width: auto;
  height: 70%;
  display: none;
  background-color: transparent;
  border: none;
  border-left: 1px solid var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
  /* border-right: 1px solid black; */
  outline: none;
  justify-content: center !important;
  align-items: center !important;
  overflow: auto;
  cursor: pointer;
  color: gray;
  padding-left: 10px ;
  direction: ltr !important;
}

.select option
{
  background-color: var(--bg-color);
}




 











#h6{
  padding-left: 5px;
}



.history{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: fixed;
  height: 30px;
  background-color: #3b3b3b !important;
  z-index: 8;
  color: white !important;
}
.redoButton{
border-radius: 100%;
height: 25px;
width: 25px;
display: flex;
justify-content: center;
align-items: center;
transition: 0.3s ease-in-out;

}

.redoButton:hover{
  background-color: gray;
  transition: 0.3s ease-in-out;
}

.backButton{
  border-radius: 100%;
  height: 25px;
  width: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s ease-in-out;
}

.backButton:hover{
  background-color: gray;
  transition: 0.3s ease-in-out;
}

.arrow-right{
  cursor: pointer;
}

.arrow-left{
  cursor: pointer;
}

.arrow-right , .arrow-left  {
  fill: white !important;
}




#iosInstallModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
#iosInstallModal > div {
  background-color: var(--bg-color) !important;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  direction: rtl;
  font-family: 'Vazirmatn', sans-serif;
}
#iosInstallModal h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}
#iosInstallModal p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 20px;
}
#iosInstallModal img {
  width: 100%;
  max-width: 300px;
  margin-bottom: 20px;
  border-radius: 10px;
  max-height: 100px;
}
#iosInstallModal button {
  background: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
























































































































.h4{
  color: var(--text-color) !important;
}

#h6{
  color: var(--text-color) !important;
}



#nav-qr-code {
  position: fixed;
  left: 15px;
  top: 94%;
  transform: translateY(-50%);
  z-index: 15;
  width: 50px;
  height: 50px;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  background-color: var(--bg-color);
  border: 2px solid white !important;
}

#nav-qr-code:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* =========================================
   استایل‌های کامل مودال خرید (مرحله ۱ و ۲)
   ========================================= */

/* 1. کانتینر اصلی مودال (فیکس شده وسط صفحه) */
.contract-modal {
  display: none;
  position: fixed !important;
  z-index: 100000 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  padding: 10px; /* فاصله از لبه‌ها در موبایل */
}

/* 2. بدنه مودال */
.contract-content {
  background-color: var(--card-bg, #fff);
  color: var(--text-color, #000);
  width: 100%;
  max-width: 500px; /* عرض مناسب */
  max-height: 90vh; /* ارتفاع محدود */
  overflow-y: auto; /* اسکرول شدن محتوا */
  border-radius: 15px;
  padding: 20px;
  position: relative;
  box-shadow: 0 15px 50px rgba(0,0,0,0.5);
  border: 1px solid var(--border-color, #ccc);
  animation: modalPopUp 0.3s ease-out forwards;
}

@keyframes modalPopUp {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* 3. هدر و دکمه بستن */
.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.step-header h2 {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
}

.close-contract {
  position: absolute;
  left: 20px;
  top: 20px;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-color);
  line-height: 1;
  z-index: 10;
}

/* ===========================
   استایل‌های مرحله ۱ (نمایشگاه)
   =========================== */

/* عکس ماشین */
.modal-car-img {
  width: 100%;
  height: 220px; /* ارتفاع ثابت */
  object-fit: cover; /* برش عکس برای پر کردن کادر */
  border-radius: 12px;
  margin-bottom: 15px;
  border: 2px solid var(--border-color);
  display: block;
}

/* نام و قیمت */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

#modalCarName {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
}

.price-tag {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
}

/* مشخصات فنی (آیکون‌ها) */
.tech-specs {
  display: flex;
  justify-content: space-around;
  background-color: var(--hover-color-li, rgba(0,0,0,0.05));
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.spec-icon { font-size: 1.2rem; }
.spec-val { font-weight: bold; font-size: 0.9rem; }
.spec-label { font-size: 0.8rem; color: var(--secondary-text); }

/* انتخاب رنگ */
.color-selection-area {
  text-align: center;
  margin-bottom: 20px;
}

.colors-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 10px 0;
}

.color-dot {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.color-dot:hover { transform: scale(1.1); }

.color-dot.selected {
  transform: scale(1.2);
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
}

.color-label { font-size: 0.9rem; margin-top: 5px; }

/* دکمه مرحله ۱ */
.btn-primary-modal {
  width: 100%;
  padding: 12px;
  background-color: var(--primary-color);
  color: var(--bg-color); /* متن مخالف رنگ پس‌زمینه */
  border: 1px solid var(--text-color);
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}
.btn-primary-modal:hover { opacity: 0.9; }


/* ===========================
   استایل‌های مرحله ۲ (فرم قرارداد)
   =========================== */

/* چیدمان فیلدها */
.input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.input-group-modal {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.input-group-modal label {
  font-size: 0.85rem;
  margin-bottom: 5px;
  color: var(--secondary-text);
}

.input-group-modal input, 
.input-group-modal textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--input-bg);
  color: var(--text-color);
  font-family: 'Vazirmatn', sans-serif;
  box-sizing: border-box; /* جلوگیری از بیرون زدگی */
}

/* بوم امضا */
.signature-area {
  margin-top: 15px;
  border-top: 1px dashed var(--border-color);
  padding-top: 10px;
}

.canvas-container {
  width: 100%;
  height: 150px;
  background-color: #ffffff !important; /* همیشه سفید */
  border: 2px dashed #333;
  border-radius: 8px;
  cursor: crosshair;
  overflow: hidden;
  touch-action: none;
}

#signaturePad {
  width: 100%;
  height: 100%;
  display: block;
}

.clear-sign {
  background: transparent;
  border: 1px solid #ff4444;
  color: #ff4444;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  margin-top: 5px;
  cursor: pointer;
}

/* دکمه ثبت نهایی */
.btn-success-modal {
  width: 100%;
  padding: 14px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.btn-text-back {
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  color: var(--text-color);
}

/* ریسپانسیو */
@media (max-width: 480px) {
  .input-row { flex-direction: column; gap: 0; }
  .modal-car-img { height: 180px; }
  .contract-content { padding: 15px; }
}

/* استایل‌های اعتبارسنجی فرم (Real-time Validation) */
.input-group-modal input.invalid,
.input-group-modal textarea.invalid {
    border-color: #f44336 !important; /* قرمز */
    background-color: rgba(244, 67, 54, 0.05);
}

.input-group-modal input.valid,
.input-group-modal textarea.valid {
    border-color: #4CAF50 !important; /* سبز */
}

.validation-error {
    color: #f44336;
    font-size: 0.75rem;
    margin-top: 4px;
    display: none; /* پیش‌فرض مخفی */
    text-align: right;
}

.input-group-modal.has-error .validation-error {
    display: block; /* نمایش وقتی خطا دارد */
}

/* استایل پیام‌های خطا (Inline Error) */
/* استایل پیام‌های خطا (فقط مخصوص مودال قرارداد) */
.contract-modal .error-message {
  color: #f44336;
  font-size: 0.8rem;
  margin-top: 5px;
  text-align: right;
  display: none;       /* فقط در مودال مخفی باشد */
  font-weight: bold;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* وقتی اینپوت خطا دارد */
.input-group-modal input.invalid,
.input-group-modal textarea.invalid {
  border-color: #f44336 !important;
  background-color: rgba(244, 67, 54, 0.05);
}

.canvas-container.invalid {
  border: 2px dashed #f44336 !important;
  background-color: rgba(244, 67, 54, 0.05) !important;
}


/* افکت تایپ‌نویس */
.type-effect {
  font-family: 'Vazirmatn', sans-serif !important;
  font-weight: 900 !important;
  font-size: 1.8rem !important;
  color: white; /* یا متغیر رنگ متن */
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.cursor {
  animation: blink 1s infinite;
  font-weight: 100;
  color: var(--primary-color);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* نوار خدمات در موبایل */
@media (max-width: 768px) {
  .type-effect {
      font-size: 1.2rem !important;
  }
  .services-bar {
      gap: 10px !important;
  }
  .service-item span {
      font-size: 10px !important;
  }
  .service-item i {
      font-size: 15px !important;
  }
}



/* Hide QR code on very small screens */
@media (max-width: 576px) {
  #nav-qr-code {
    left: 15px;
    width: 40px;
    height: 40px;
  }

  
}





@media (max-width: 575.98px) {
 main{
  font-size: smaller;
 }

 

 .h4 {
  font-size: 11px !important;
  font-weight: 600 !important;
  margin: 3px 0 !important;
}

#h6 {
  font-size: 8px !important;
  margin: 2px 0 !important;
}

.box3-mobile {
  padding: 0 5px;
}

.box-2-mobile {
  margin-bottom: 3px;
}

 
.move{
  font-size: 17px !important;
}





.swiper-slide{
  width: 70% !important;
}

.order {
  width: 40% !important;
}

.ord{
  font-size: 15px !important;
}


 .box-foot-mobile{
  display: flex;
  flex-direction: column;

 }


 footer{
  position: relative;
top: 300px !important; 
}

 .mode{
    left: 21%;
 }





 .button2{
  height: 100% !important;
 }

 .box3-mobile{
  font-size: small !important;
 }

 .move{
  font-size: 21px;
 }

 .button{
  width: 150px;
  font-size: medium;
 }

 .real{
  flex-direction: column;
  height: auto !important;
  max-height: fit-content;
  gap: 20px;
  width: 100% !important;
 }

 .real2-mobile-2{
  display: none !important;
 }

 .real3-mobile-2{
  display: none !important;
 }

 .real2-mobile{
  width: 100% !important;
  display: flex !important;
  justify-content: space-around;
 }


 .real3-mobile{
  height: auto;
  max-height: fit-content;
  display: flex !important;
  width: 90%;
 }



 .real2{
  width: 100% !important;
  display: flex !important;
  justify-content: space-around;
 }


 .real3{
  height: auto;
  max-height: fit-content;
  display: flex !important;
  width: 90%;
 }
 .button2{
  height: 50px !important;
 }
 .button{
  display: none;
 }

 .button3{
  display: block;
 }

 #h6{
  font-size: 9px !important;
 }

 
 .h4{
  font-size:  11px!important;
  font-weight: 900 !important;
 }

 .box-3-mobile{
  height: auto;
  width: auto;
  font-weight: bold !important;
  position: relative;
  top: 15px;
 }

 .li1{
  /* font-size: normal; */
  padding: 11% 10%;
  
 }

 .li2{
  /* font-size: normal; */
  padding: 11% 10%;
  
 }

 


 .header{
  position: relative;
  left: -1px;
  /* background-color: aqua; */

  width: 50% !important;
 }
 .bow
{
  width: 30%;
  height: 100%;
}


input[type="text"]:focus {

  font-size: normal;
  
  }

  
  .li1 #menu-box{
    width: 82%;
    
   }
  
ul{
  display:none;
}

.detail{
  bottom: 250px !important;
}

.child2{
  height: 430px !important;
}


}

@media (min-width: 576px) and (max-width: 767.98px) {
  main{
    font-size: smaller;
   }

   .mode{
    left: 28%;
 }

 .h4 {
  font-size: 13px !important;
  font-weight: 600 !important;
  margin: 4px 0 !important;
}

#h6 {
  font-size: 9px !important;
  margin: 2px 0 !important;
}

 @keyframes mob{
  to {width: 100%;}
}

 

 .swiper-slide{
  width: 48% !important;
 }

 

   


   
  

   .box-3-mobile{
    height: auto;
    width: auto;
   }


   .button{
    display: none;
   }
  
   .button3{
    display: block;
   }

   
 .h4{
  font-size: 15px !important;
  font-weight: 900 !important;
 }

  ul{
    display:none;
  }
   .li1{
    /* font-size: normal; */
    padding: 12% 10%;
    
   }

   .li2{
    /* font-size: normal; */
    padding: 12% 10%;
    
   }


   .header{
    position: relative;
    left: -1px;
    /* background-color: aqua; */
  
    width: 50% !important;
   }
   .bow
  {
    width: 30%;
    height: 100%;
  }

input[type="text"]:focus {

  font-size: normal;
  
  }

  .li1 #menu-box{
    width: 82%;
    
   }





}


@media (min-width: 768px) and (max-width: 991.98px) { 
 .header{
  left: 10%;
  width: 50%;
 }

 .mode{
  left: 33%;
 }





ul{
  display:none;
}
 .li1:hover .veil{
  width: 92%;
  
 }

 #h6{
  font-size: small !important;
 }

 .button{
  display: none;
 }

 .button3{
  display: block;
 }

.h4{
  font-weight: 500 !important;

}

 .box-3-mobile{
  height: auto;
  font-size: 20px !important;

 }

 .bow{
  width: 20%;
 }

 .parent-mobile{
  row-gap: 40px;
 }

 .swiper-slide{
  width: 48% !important;
 }
}


@media (min-width: 992px) and (max-width: 1199.98px) { 
 
  .box{
    left: 8.5% !important;
  }

  .mode{
    left: 30%;
 }



 .span{
  display: none;
 }

 .box-3 h4{
  font-size: 16px  !important;
  font-weight: 500 !important;
 }

 .swiper-slide{
  width: 35% !important;
 }

 
  #h6{
    font-size: 8px !important;
   }

 .header{
  left: 7%;
 }
 .h4{
  font-weight: 900 !important;

}

 .parent-mobile{
  row-gap: 40px;
 }

 .box-3-mobile{
  font-size: 25px !important;
  height: auto;
 }


 .button{
  display: block;
 }

 .button3{
  display: none;
 }


 
}

@media (min-width: 1200px)  {  
  .header{
    left: 4%;
  }

  .swiper-slide{
    width: 32% !important;
  }

  .mode{
    left: 33%;
 }

  .li1:hover .veil{
    width: 95%;
    
   }
   
   .span{
    display: none;
    
    
   }

   



}



















/* Profile Avatar and Dropdown Styles */
.profile-avatar-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* Ensure the avatar is centered in its container */
  width: 80%; /* Match the width of the .register button */
  height: 80%; /* Match the height of the .register button */
  cursor: pointer;
}

.profile-avatar {
  width: 40px; /* Adjust size as needed */
  height: 40px; /* Adjust size as needed */
  border-radius: 50%;
 /* Default background */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem; /* Adjust font size of initial */
  font-weight: bold;
  text-transform: uppercase;
  border: 2px solid var(--primary-color); /* Optional: adds a border */
  transition: transform 0.2s ease-in-out;
}

.profile-avatar:hover {
  transform: scale(1.1);
}

/* Profile dropdown animation variables */
:root {
  --dropdown-anim-duration: 0.3s;
  --dropdown-y-offset: -10px;
  --dropdown-x-offset: -40%;
  --avatar-pulse-duration: 0.3s;
}

.profile-dropdown {
  display: none;
  position: absolute;
  top: 100%; /* Position below the avatar */
  left: 50%;
  transform: translateX(var(--dropdown-x-offset));
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  width: 200px; /* Adjust width as needed */
  padding: 8px 0;
  margin-top: 14px; /* Space between avatar and dropdown */
  margin-left: -49px;
  opacity: 0;
  transform-origin: top center;
  transition: opacity var(--dropdown-anim-duration) ease, transform var(--dropdown-anim-duration) ease;
  will-change: opacity, transform; /* Performance optimization */
}

/* Profile dropdown background follows profile background in light mode */
body:not(.darkmode) .profile-dropdown {
  background-color: var(--profile-bg) !important;
}

/* Animation classes for dropdown */
.profile-dropdown.show-dropdown {
  display: block;
  animation: dropdownAppear var(--dropdown-anim-duration) forwards;
}

.profile-dropdown.hide-dropdown {
  display: block;
  animation: dropdownDisappear var(--dropdown-anim-duration) forwards;
}

@keyframes dropdownAppear {
  0% {
    opacity: 0;
    transform: translateX(var(--dropdown-x-offset)) translateY(var(--dropdown-y-offset)) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(var(--dropdown-x-offset)) translateY(0) scale(1);
  }
}

@keyframes dropdownDisappear {
  0% {
    opacity: 1;
    transform: translateX(var(--dropdown-x-offset)) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(var(--dropdown-x-offset)) translateY(var(--dropdown-y-offset)) scale(0.95);
  }
}

/* Animation for the avatar when clicked */
.profile-avatar.active {
  animation: avatarPulse var(--avatar-pulse-duration) forwards;
  will-change: transform; /* Performance optimization */
}

@keyframes avatarPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}


/* Dropdown profile header styles */
.dropdown-profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 10px;
  text-align: center;
  transition: opacity 0.2s ease; /* Smooth transition for header elements */
}

.dropdown-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  text-transform: uppercase;
  color: white;
  margin-bottom: 10px;
  border: 2px solid var(--primary-color);
  will-change: transform; /* Performance optimization */
  transition: transform 0.2s ease;
}

.dropdown-avatar:hover {
  transform: scale(1.05);
}

.dropdown-username {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 5px;
}

.dropdown-divider {
  width: 90%;
  height: 1px;
  background-color: var(--border-color);
  margin: 0 auto 8px auto;
}

/* Dropdown menu items */
.dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
  direction: ltr; /* This will make icons appear on the left */
  text-align: left; /* Align text to the left */
}

.dropdown-item svg {
  margin-left: 10px; /* Add margin-left for LTR */
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--hover-color-li);
  color: var(--primary-hover);
  transform: translateX(2px); /* Subtle movement on hover */
}

.dropdown-item:hover svg {
  transform: scale(1.1); /* Slightly enlarge icon on hover */
}

/* RTL adjustments for the dropdown text if you want text on the right of icon */
/*
.dropdown-item {
  direction: rtl;
  text-align: right;
}
.dropdown-item svg {
  margin-left: 0;
  margin-right: 10px;
}
*/

/* Adjust .bow to properly contain the avatar */
.bow {
  display: flex;
  justify-content: center;
  align-items: center;
}

html, body {
  font-family: 'Vazirmatn', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Vazirmatn', sans-serif !important;
}


button, input, select, textarea {
  font-family: 'Vazirmatn', sans-serif !important;
}
