/* ---------------------------- */
/* S---------- Basic ---------- */
/* ---------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'iranyekan';
    user-select: none;
}
img {
    display: inline-block;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    height: auto;
}
span {
    display: flex
}
a {
    display: flex;
    text-decoration: none;
    color: inherit;
    outline: none;
}
ul {
    list-style-type: none;
    list-style-position: inside;
}
input, button, textarea, select {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-align: inherit;
    outline: none;
}
textarea {
    resize: none;
}
table {
    width: 100%;
}
/* ---------------------------- */
/* ---------- Basic ----------E */
/* ---------------------------- */




/* ---------------------------- */
/* S-------- Libraries -------- */
/* ---------------------------- */
.scroll-y {
    overflow-y: scroll !important;
}
.scroll-x {
    overflow-x: scroll !important;
}
.scroll-all {
    overflow: scroll !important;
}
.hide-scroll {
    scrollbar-width: none;
}
.hide-scroll::-webkit-scrollbar {
    display: none;
}


/* --- deactive feature */
.deactive-feature {
    position: relative;
    cursor: not-allowed !important;
}
.deactive-feature * {
    cursor: not-allowed !important;
}
.deactive-feature::after {
    content: attr(data-phrase);
    position: absolute;
    font-size: 0.55rem;
    background: #fac0c0;
    color: #ff0000;
    box-shadow: 0 0 1px #ff0000;
    padding: 0.55em 0.65em;
    border-radius: 4px;
    font-weight: bolder;
    bottom: 55%;
    margin: 0 65%;
    opacity: 0.85;
    display: none;

    z-index: 40;
}
.deactive-feature:hover::after {
    display: block;
}

/* --- -------------- */

/* --- loader */
.loader {
    display: block;
    position: absolute;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid var(--main-color);
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;

    top: 45%;
    transform: translateY(-50%);
    right: 0;
    left: 0;
    margin: 0 auto;

    z-index: 100;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- -------------- */

/* --- drop-down feature */
.drop-down-menu {
    display: grid;
    grid-template-rows: 0fr;
    width: 100%;
    position: absolute;
    top: 100%;
    z-index: 20;
    visibility: hidden;
    transition: 0.2s;
}
.drop-down-menu > * {
    overflow: hidden;
}

.drop-down-menu--show {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: 0.3s;
}

/* --- -------------- */

/* --- messgae feature */
.message-item.message-success {
    border-top: 5px solid #00d544;

}
.message-item.message-success .message__icon,
.message-item.message-success .message__text h5 {
    color: #00d544;
}
.message-item.message-success .message__text h6 a {
    border: 1px solid #00d544;
   background: #00d544;
}
.message-item.message-success .message__text h6 a:hover {
    color: #00d544;
}

.message-item.message-error {
    border-top: 5px solid #ea3131;
}
.message-item.message-error .message__icon,
.message-item.message-error .message__text h5 {
    color: #ea3131;
}
.message-item.message-error .message__text h6 a {
    border: 1px solid #ea3131;
   background: #ea3131;
}
.message-item.message-error .message__text h6 a:hover {
    color: #ea3131;
}

.message-item.message-warn {
    border-top: 5px solid #dad715;
}
.message-item.message-warn .message__icon,
.message-item.message-warn .message__text h5 {
    color: #dad715;
}
.message-item.message-warn .message__text h6 a {
    border: 1px solid #dad715;
   background: #dad715;
}
.message-item.message-warn .message__text h6 a:hover {
    color: #dad715;
}

.message-item.message-info {
    border-top: 5px solid #3186ea;
}
.message-item.message-info .message__icon,
.message-item.message-info .message__text h5 {
    color: #3186ea;
}
.message-item.message-info .message__text h6 a {
    border: 1px solid #006fe6;
   background: #3186ea;
}
.message-item.message-info .message__text h6 a:hover {
    color: #3186ea;
}

.message-container {
    position: absolute;
    top: 1.5vh;
    top: 1.5dvh;
    left: 0;
    right: 0;
    padding: 0 !important;
    margin: 0 auto;
    width: clamp(300px, 30%, 500px);
    max-height: 97vh;
    max-height: 97dvh;
    overflow-y: scroll;
    z-index: 50;
}

.message-item {
    position: relative;
    left: 0;
    right: 0;
    padding: 0.7em !important;
    margin: 0 auto;
    margin-bottom: 0.2em;
    display: flex;
    justify-content: space-between;
    gap: 0.8em;
    width: 90%;
    border-radius: 1px;
    background: #fffffffd;
    box-shadow: 0px 0px 3px #7c7c7c;
}

.message-container .message__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}
.message-container .message__close {
    color: #5f5f5f;
    padding: 0.3em;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}
.message-container .message__close:hover {
    color: #fc2d2d;
   background: #eee;

    transition: .2s;
}

.message-container .message__text {
    flex-grow: 1;
    
}
.message-container .message__text h5 {
    padding-bottom: 0.4em;
}
.message-container .message__text p {
    font-size: 0.8rem;
    word-spacing: -1px;
    padding-bottom: 0.3em;
    text-align: justify;
}
.message-container .message__text h6 {
    border-top: 1px solid #c8c8c8;
    margin-top: 0.5em;
    padding-top: 0.7em;
    padding-right: 0.5em;
    padding-left: 0.5em;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.message-container .message__text h6 a {
    padding: 0.4em 0.9em;
    border-radius: 3px;
    color: #fff;
    cursor: pointer;
}
.message-container .message__text h6 a:hover {
   background: #fff;

    transition: .3s;
}

.message-container .message__time-line {
    position: absolute;
    bottom: 0;
    width: 0;
    margin: 0px -0.7em;
    height: 0.34em;
   background: #e6e6e6;

}

.animate-show {
    animation: show_animate 1s ease forwards;
}
.animate-hide {
    animation: hide_animate 1s ease forwards;
}
  
@keyframes show_animate {
  0%{
    transform: translateX(5%);
  }
  40%{
    transform: translateX(-5%);
  }
  100%{
    transform: translateX(0%);
  }
}
@keyframes hide_animate {
  0%{
    transform: translateX(0%);
  }
  60%{
    transform: translateX(-10%);
  }
  100%{
    transform: translateX(150%);
  }
}

@media screen and (max-width: 600px) {
    .message-container {
        position: fixed;
        top: 0;
    }
    .message-container {
        width: 100%;
    }
    .message-item {
        width: 100%;
        margin-bottom: 0;
    }
    
}

/* --- -------------- */



/* --- confirm feature */
.confirm-container.confirm-info {
    border-top: 5px solid #3186ea;
}
.confirm-container.confirm-info .confirm__icon {
    color: #3186ea;
}

.confirm-container.confirm-success {
    border-top: 5px solid #00d544;
}
.confirm-container.confirm-success .confirm__icon {
    color: #00d544;
}

.confirm-container.confirm-error {
    border-top: 5px solid #ea3131;
}
.confirm-container.confirm-error .confirm__icon {
    color: #ea3131;
}

.confirm-container.confirm-warn {
    border-top: 5px solid #dad715;
}
.confirm-container.confirm-warn .confirm__icon {
    color: #dad715;
}

.confirm-container.confirm-delete {
    border-top: 5px solid #ea3131;
}
.confirm-container.confirm-delete .confirm__icon {
    color: #ea3131;
}


.confirm-container {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    gap: 1.2em;

    position: absolute;
    left: 0;
    right: 0;
    top: 45%;
    transform: translateY(-50%);
    margin: 0 auto;
   background: #fff;
    border-radius: 3px;

    padding: 1em 2.5em !important;
    width: clamp(300px, 25%, 500px);
    box-shadow: 0px 0px 3px #7c7c7c;

    z-index: 40;
}

.confirm-container .confirm__icon {
    font-size: 4rem;

}
.confirm-container .confirm__icon span {
    display: flex;
    justify-content: center;
    align-items: center;
}

.confirm-container .confirm__text {
    display: flex;
    flex-flow: column;
    gap: 0.5em;
    text-align: center;
    margin-bottom: 0.5em;
}
.confirm-container .confirm__text h5 {
    font-size: 1rem;
    
}
.confirm-container .confirm__text p {
    font-weight: lighter;
    font-size: 0.75rem;
    text-align: justify;
    word-spacing: -1px;
}
.confirm-container .confirm__action {
    font-size: 0.8rem;
    display: flex;
    flex-flow: column;
    gap: 0.5em;
    min-width: 50%;
    text-align: center;
}
.confirm-container .confirm__action button {
    padding: 0.5em 0.9em;
    border-radius: 3px;
    cursor: pointer;
}

.confirm-container .confirm__action__accept {
   background: #03060a;
    border: 1px solid #03060a;
    color: #fff;
}
.confirm-container .confirm__action__accept:hover {
   background: #fff;
    color: #03060a;
    font-weight: bolder;

    transition: .3s;
}

.confirm-container .confirm__action__decline {
    border: none;
   background: unset;
}
.confirm-container .confirm__action__decline:hover {
    color: #320202;
    /* font-weight: bolder; */
    box-shadow: 0 0 3px #e4c7c7;

    transition: .2s;
}

/* --- -------------- */

/* --- print container */


.print-container {
    display: none;
}
@media print {
    @page {
        margin: 0 !important;
    }
    body {
        width: calc(297mm - 3.2cm) !important;
        height: calc(210mm - 3.2cm) !important;
        
        margin: 1.6cm !important;
    }
    .message-container {
        display: none !important;
    }
    .not-shown-print {
        display: none !important;
    }
}
/* --- -------------- */

/* --- Dispaly Limit Controll */

@media screen and (max-height: 500px) and (orientation: landscape) {
    body > * {
        background-image: url("../asset/image/background/no_rotate.png") !important;
        background-color: #eee !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        position: relative !important;

        height: 100vh !important;
        height: 100dvh !important;
    }
    body > * > * {
        display: none !important;
    }
}

/* --- -------------- */


/* --- general tools */
.cursor-pointer {
    cursor: pointer;
}
.cursor-wait {
    cursor: wait !important;
}
.text-nowrap {
    text-wrap: nowrap;
}
.text-center {
    text-align: center;
}

.display-none {
    display: none !important;
}
.display-block {
    display: block !important;
}

.flex-only {
    display: flex;
}
.flex-align-c {
    display: flex;
    align-items: center;
}
.flex-c {
    display: flex;
    justify-content: center;
    align-items: center;
}
.flex-sb {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.flex-sa {
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.flex-se {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
.flex-s {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.flex-e {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.flex-c-na {
    display: flex;
    justify-content: center;
}
.flex-sb-na {
    display: flex;
    justify-content: space-between;
}
.flex-sa-na {
    display: flex;
    justify-content: space-around;
}
.flex-se-na {
    display: flex;
    justify-content: space-evenly;
}
.flex-s-na {
    display: flex;
    justify-content: flex-start;
}
.flex-e-na {
    display: flex;
    justify-content: flex-end;
}
.flex-column {
    display: flex;
    flex-direction: column;
}
.flex-column-r {
    flex-direction: column-reverse;
}
.flex-row-r {
    flex-direction: row-reverse;
}
.flex-wrap {
    flex-wrap: wrap;
}
.flex-grow > * {
    flex-grow: 1;
}
.no-align {
    align-items: unset;
}
.child-grow {
    flex-grow: 1;
}
.gap-4em {
    gap: 4em;
}
.gap-3em {
    gap: 3em;
}
.gap-2em {
    gap: 2em;
}
.gap-15em {
    gap: 1.5em;
}
.gap-1em {
    gap: 1em;
}
.gap-07em {
    gap: 0.7em;
}
.gap-05em {
    gap: 0.5em;
}
.gap-03em {
    gap: 0.3em;
}

.grid-c {
    display: grid;
    place-content: center;
}

.latin-container {
    direction: ltr;
}
.latin-container * {
    direction: ltr;
}
.latin-input,
.string-input,
.latin-element {
    direction: ltr;
}
.numeric-input,
.phone-numeric-input,
.count-numeric-input,
.decimal-numeric-input{
    direction: ltr;
}

.arabic-container {
    direction: rtl;
}
.arabic-container * {
    direction: rtl;
}
.arabic-input,
.arabic-element {
    direction: rtl;
}

.center-input,
.center-input input {
    text-align: center;
}

.hover-scale-05:hover {
    transform: scale(1.05);
    transition: .2s;
}
.hover-scale-1:hover {
    transform: scale(1.1);
    transition: .3s;
}
/* -------- */

.header-size {
    font-size: clamp(1.2rem, 1.5vw, 2.2rem);
}
.header-size--big {
    font-size: clamp(1.5rem, 1.8vw, 2.4rem);
}

.text-size {
    font-size: clamp(0.8rem, 0.8vw, 1.1rem);
}

.footer-size {
    font-size: clamp(0.6rem, 0.7vw, 0.9rem);

}

.suffixed-label {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0.5em;
}

.suffixed-label > *:last-child {
    font-size: smaller;
    filter: contrast(0.5);
    word-spacing: -1px;
}

.suffixed-input {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
.suffixed-input::after {
    content: attr(data-suffixed);
    position: absolute;
    align-self: flex-end;
    font-size: smaller;
    font-weight: bolder;
    color: #b1b1b1;
    margin: 0 1em;
    pointer-events: none;
}

.suffixed-input > input::placeholder {
    color: #b1b1b1;
}

.general-input {
    border: 1px solid #b9b9b9;
    box-shadow: 0 0 1px #b9b9b9;
    border-radius: 2px;
    text-align: center;
    padding: 0.3em 1.6em;
    font-size: 0.7rem;
    font-weight: bolder;
    height: 100%;
    width: 100%;
}

.general-counter-container {
    position: relative;
}
.general-counter-container input {
    width: 100%;
    height: 100%;
    text-align: center;
}
.general-counter-container span {
    position: absolute;
    top: 9%;
    font-size: 1rem;
    color: #7f7f7f;
    font-weight: bolder;
    padding: 0 0.4em;
    cursor: pointer;
    border: 5px;
}
.general-counter-container span:hover {
    color: #171717;
    background: #f8f8f8;

    transition: .2s;
}
.general-counter-container span:first-child {
    right: 1px;
}
.general-counter-container span:last-child {
    left: 1px;
}

.general-input-mark-container {
    position: relative;
}
.general-input-mark-container > input {
    border: 1px solid #b9b9b9;
    box-shadow: 0 0 1px #b9b9b9;
    border-radius: 2px;
    text-align: center;
    padding: 0.3em 1.6em;
    font-size: 0.7rem;
    font-weight: bolder;
    height: 100%;
    width: 100%;
}
.general-input-mark-container::before {
    content: attr(data-after);
    position: absolute;
    top: 9%;
    right: 0;
    font-size: 1rem;
    color: #7f7f7f;
    font-weight: bolder;
    padding: 0 0.4em;
    cursor: pointer;
    border: 5px;
}

.general-input-mark-container::after {
    content: attr(data-befor);
    position: absolute;
    top: 9%;
    left: 0;
    font-size: 1rem;
    color: #7f7f7f;
    font-weight: bolder;
    padding: 0 0.4em;
    cursor: pointer;
    border: 5px;
}

.general-button {
    text-align: center;
    border: 1px solid #565656;
    padding: 0.4em 0.5em;
    background: #434343;
    color: #fff;
    font-size: 0.75rem;
    height: 100%;
    width: 100%;
    border-radius: 3px;
    cursor: pointer;
}
.general-button:hover {
    font-weight: bolder;
    color: #434343;
    background: #fff;
    transition: .3s;
}
.general-button.general-button--light {
    border: 1px solid #565656;
    background: #fff;
    color: #434343;

}
.general-button.general-button--light:hover {
    color: #fff;
    background: #434343;
}

.general-title-show {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: help;
    font-weight: bolder;
    position: relative;
}
.general-title-show:hover > *:last-child {
    display: flex;
    transition: .3s;
}
.general-title-show > *:last-child {
    display: none;
    position: absolute;
    width: 200%;
    top: 100%;
    background: #ffffeb;
    font-weight: normal;
    border-radius: 2px;
    z-index: 3;
    box-shadow: 0 0 3px #ffffeb;
    padding: 0.5em 0.8em;
    text-align: justify;
    font-size: 0.65rem;
    color: #303030;
    border: 1px dotted #858f1c;
}
.general-title-show > *:last-child:empty {
    display: none !important;
}

.general-table {
    border-collapse: collapse;
    text-align: center;
}
.table-null-row {
    background: #fff9f9 !important;
    color: #de0000 !important;
    font-weight: bolder !important;
    padding: 1em !important;
    cursor: not-allowed !important;
}

@media screen and (max-width: 600px) {
    .responsive-table {
        text-align: center;
    }

    .responsive-table tr {
        display: flex;
        flex-flow: row wrap;
    }
    .responsive-table tr th {
        flex-grow: 1;
    }

    .responsive-table tr td {
        flex-grow: 1;
        border: 1px solid #e2e2e2;
    }

    .responsive-table tr td:last-child {
        flex-basis: 100%;
        border-bottom: 2px solid #9e9e9e !important;
    }      
}

/* --- -------------- */

/* ---------------------------- */
/* -------- Libraries --------E */
/* ---------------------------- */


/* ---------------------------- */
/* S--------- COMMON ---------- */
/* ---------------------------- */

.base-container {
    display: flex;  
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    /* background: #e4e6eb; */
    background: #111116;
    overflow: hidden;
}

/* ---------------------------- */
/* ---------- COMMON ---------E */
/* ---------------------------- */





/* ---------------------------- */
/* S-------- Home-Page -------- */
/* ---------------------------- */
.base-container.home-page {
    display: block;
}


.home-page .header-segment {
    padding-block: 0.2em;
    padding-inline: 1em;
    border-bottom: 2px solid #16161b;
    color: #fff;
}

.home-page .header-segment .header__nav {
    flex-grow: 2;
}
.home-page .header-segment .header__nav > * {
    font-size: 0.85rem;
    padding: 0.5em 0.8em;
    font-weight: normal;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}
.home-page .header-segment .header__nav > *.selected {
    background: #1a191e;
}
.home-page .header-segment .header__nav > *:hover {
    color: #fafafa;
    background: #1a191e;
    padding-inline: 1.5em;
    transition: 0.4s;
}
.home-page .header-segment .header__nav > .mobile {
    display: none;
    font-size: 1rem;
}


.home-page .header-segment .header__price {
    background: #1a191e;
    /* overflow: hidden; */
    border-radius: 8px;
    color: #f8f8fb;
}
.home-page .header-segment .header__price > .header__price__show {
    padding-inline: 0.8em
}
.home-page .header-segment .header__price > .header__price__show > * {
    padding: 0.6em 0;
}
.home-page .header-segment .header__price > .header__price__show > *:nth-child(1),
.home-page .header-segment .header__price > .header__price__show > *:nth-child(2),
.home-page .header-segment .header__price > .header__price__show > *:nth-child(3) {
    color: #f6e09e;
}


@media screen and (max-width: 700px) {
    .home-page .header-segment > * {
        flex-grow: 1;
    }
    .home-page .header-segment > *,
    .home-page .header-segment .header__price > .header__price__show {
        justify-content: center;
    }
    
    .home-page .header-segment .header__nav  {
        justify-content: space-evenly;
    }
    .home-page .header-segment .header__nav > .mobile {
        display: flex;
    }
    .home-page .header-segment .header__nav > .desktop {
        display: none;
    }
    
    
}
.home-page .slide-segment {
    height: 50vh;
    height: 50dvh;
    padding: 1em;
}

.home-page .slide-segment > .slide__cover {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 0 2px #585858;
}
.home-page .slide-segment > .slide__cover:first-child {
    flex-grow: 3;
    border: 1px solid #d6c68e;
}
.home-page .slide-segment > .slide__cover:last-child {
    flex-grow: 1;
    border: 1px solid #d6c68e;
}

.home-page .trade-segment {
    color: #fff;
    padding: 1em;

}
.home-page .trade-segment > h2 {
    color: #cfbe95;
    padding-bottom: 1.5em;
    font-size: 0.9rem;
}
.home-page .trade-segment > .trade__body .trade__table thead th {
    color: #5c5c61;
    font-size: 0.7rem;
    padding: 0.5em;
    padding-bottom: 1em;
    font-weight: normal;
    border-bottom: 1px solid #15151a;
}
.home-page .trade-segment > .trade__body .trade__table tbody td {
    color: #d6d5d8;
    padding: 1.6em 0.5em;
    font-size: 0.8rem;
}

@media screen and (max-width: 550px) {
    .home-page .slide-segment > .slide__cover:last-child {
        display: none;
    }
    .home-page .trade-segment > .trade__body .trade__table thead th.no-mobile,
    .home-page .trade-segment > .trade__body .trade__table tbody td.no-mobile {
        display: none;
    }
}

.home-page .contact-segment {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 0.5em;
    width: 60px;
    height: 60px;
    border-radius: 5px;
    filter: drop-shadow(0px 0px 5px #000);
}

/* ---------------------------- */
/* ------- Home-Page --------E */
/* ---------------------------- */
