@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: 400;
    src: url("https://cdn.alanchand.com/fonts/IRANYekanX-Regular_rmyjzr.woff") format("woff"), url("https://cdn.alanchand.com/fonts/IRANYekanX-Regular_aewsrj.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: 600;
    src: url("https://cdn.alanchand.com/fonts/IRANYekanX-Bold_y0gs47.woff") format("woff"), url("https://cdn.alanchand.com/fonts/IRANYekanX-Bold_dfy3a0.woff2") format("woff2");
    font-display: swap;
}

p {
    line-height: 28px;
}

strong {
    font-weight: 600 !important;
}

h2,
h3,
h4,
h5,
h6 {
    font-weight: 600 !important;
    font-size: 15px !important;
}

h2 i,
h3 i,
h4 i,
h5 i,
h6 i {
    font-size: 18px;
}

:root {
    --color: #243746;
    --color-primary: #727272;
    --color-secondary: #0e2233;
    --bg: #f3f5f4;
    --bg-secondary: #fff;
    --border-color: #ddd;
    --SBborder-color: #ddd;
    --bg-border: #c3c3c3;
    --menu-bg: #ededed;
    --menu-item: #424242;
    --menu-item-active: #4647b1;
    --crypto-bg: #fff;
    --gold-bg: #fff;
    --logo: #4647b1;
    --footer-bg: #e9e9e9;
    --arz-link: #212529;
    --title-color: #4647b1;
    --p-text: #243746;
    --input-bg: #fff;
    --input-border: #b7b7b7;
    --input-pl: #cdcdcd;
    --SBG: #fff;
    --btn-exchange-text: #4647b1;
    --btn-exchange: white;
}

.dark-mode {
    --color: #ebf4f1;
    --color-primary: #bababa;
    --color-secondary: #fdf9f3;
    --bg: #1a1a1a;
    --bg-secondary: #071521;
    --border-color: #0d2538;
    --SBborder-color: #272727;
    --bg-border: #424242;
    --menu-bg: #363636;
    --menu-item: #8f8f8f;
    --menu-item-active: #fff;
    --crypto-bg: #363636;
    --gold-bg: black;
    --logo: #fff;
    --footer-bg: #101010;
    --arz-link: #212529;
    --title-color: #8d8eff;
    --p-text: #dbdbdb;
    --input-bg: #202123;
    --input-border: #4d4d4d;
    --input-pl: #707070;
    --SBG: #292929;
    --btn-exchange-text: #262626;
    --btn-exchange: #a2a2e5;
}

.dark-mode select,
.dark-mode input[type="text"],
.dark-mode input[type="number"],
.dark-mode input[type="email"],
.dark-mode textarea {
    background: #4c4c4c;
    border: solid 1px #606060;
    color: white;
}

.dark-mode input[type="text"]::placeholder,
.dark-mode input[type="number"]::placeholder,
.dark-mode input[type="email"]::placeholder,
.dark-mode textarea::placeholder {
    color: #b9b9b9;
    opacity: 0.8;
}

.dark-mode input[type="text"]:-ms-input-placeholder,
.dark-mode input[type="email"]:-ms-input-placeholder,
.dark-mode textarea:-ms-input-placeholder {
    color: #b9b9b9;
}

.logo .s1 {
    fill: var(--logo);
}

.logo .s2 {
    fill: white;
}

.dark-mode .logo .s2 {
    fill: var(--input-bg);
}

body p {
    color: var(--p-text);
}

html:not([lang="fa"]) a:first-letter,
html:not([lang="fa"]) h1:first-letter,
html:not([lang="fa"]) h2:first-letter,
html:not([lang="fa"]) p:first-letter,
html:not([lang="fa"]) div:first-letter,
html:not([lang="fa"]) li:first-letter,
html:not([lang="fa"]) h5:first-letter {
    text-transform: uppercase !important;
}

html[lang="fa"] {
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
    font-family: "IRANYekanX";
}

html[lang="en"] div,
html[lang="tr"] div {
    font-family: sans-serif;
}

body {
    padding-top: 58px;
    background-color: var(--bg) !important;
    color: var(--color) !important;
    transition: background-color 0.3s;
}

.top-head h1 {
    padding-top: 80px;
    font-size: 38px;
    font-weight: 600;
}

.top-head p {
    font-size: 18px;
    font-weight: 600;
}

.dark-mode .top-head .bg {
    opacity: 0.2;
}

.top-head .bg {
    text-align: center;
    width: 100%;
    min-height: 70vh;
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
}

.arz-holder {
    padding: 0;
}

.arz .item {
    padding: 0 8px;
}

.arz .body[side="left"] img {
    margin-left: 5px;
}

.arz .table {
    display: table;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
}

.arz .data:hover {
    color: white;
    background-color: #4647b1 !important;
    cursor: pointer;
}

.arz .tableRow {
    display: table-row;
    background-color: white;
}

.arz .cell .increase,
.arz .cell .decrease {
    font-size: 11px;
}

.arz .body[side="left"] .cell i {
    margin-left: 4px;
}

.arz .body[side="right"] .cell i {
    margin-right: 4px;
}

.arz .cell {
    display: table-cell;
    text-align: center;
    font-weight: 400;
    vertical-align: middle;
}

.arz .body .head .cell {
    padding: 12px 0;
    font-size: 14px;
    padding-right: 10px;
}

.arz .body[side="left"] .side {
    text-align: left;
}

.arz .body[side="right"] .side {
    text-align: right;
}

.arz .body .data .cell {
    padding: 6px 8px;
    font-size: 14px;
}

.arz .title {
    font-weight: 600 !important;
    padding: 0 2px !important;
}

.arz .body {
    display: table-row-group;
}

.arz .tableRow:first-child {
    background: #3e3e3e;
    color: #fff;
}

.arz .tableRow:nth-child(2n + 3) {
    background: #f3f3f3;
}

.dark-mode .arz .tableRow {
    background-color: #464646;
    color: white;
}

.dark-mode .arz .tableRow:nth-child(2n + 3) {
    background: #6a6a6a;
    color: white;
}

.dark-mode .arz .tableRow:first-child {
    background: #262626;
}

.arz a {
    text-decoration: none;
    color: var(--arz-link);
}

.crypto .body {
    align-items: center;
    display: flex;
    background: var(--crypto-bg);
    padding: 11px 20px;
    border-radius: 7px;
    position: relative;
    margin-bottom: 10px;
    box-shadow: rgba(0, 0, 0, 0.16) 0 1px 4px;
}

.crypto {
    margin-top: 40px;
}

.crypto .item {
    margin-bottom: 4px;
}

.cpt:hover {
    color: var(--title-color) !important;
}

.cp:hover {
    opacity: 0.8;
    cursor: pointer;
}

.increase {
    color: #20cb9a;
}

.decrease {
    color: #cb1919;
}

.dark-mode .increase {
    color: #0fc973;
}

.dark-mode .decrease {
    color: #ff551f;
}

.sync_live_head {
    width: fit-content;
    margin: 0 auto;
    position: relative;
}

.sync_live {
    font-size: 8px;
    color: var(--color);
    position: absolute;
    right: -18px;
    top: 10px;
}

.chart-body {
    height: 250px;
}

.convert-related a {
    text-decoration: none;
}

.convert-related .item:hover {
    opacity: 0.8;
    cursor: pointer;
}

.convert-related .item .price {
    line-height: 18px;
}

.convert-related .item {
    align-items: center;
    display: flex;
    background: var(--crypto-bg);
    padding: 4px 20px;
    position: relative;
    margin: 0;
    border-radius: 0;
    box-shadow: unset;
    border-radius: 4px;
}

.convert-related .item .price .caption {
    color: #545454;
    font-size: 12px;
}

.convert-related[side="left"] .item .price .caption {
    text-align: left;
}

.convert-related[side="right"] .item .price .caption {
    text-align: right;
}

.convert-related[side="left"] .item .price .number {
    text-align: left;
}

.convert-related[side="right"] .item .price .number {
    text-align: right;
}

.convert-related .item .price .number {
    position: relative;
    line-height: 26px;
}

.convert-related .item .convert:hover i {
    color: white;
}

.convert-related .item .convert i {
    color: var(--logo);
    position: relative;
    top: 2px;
}

.convert-related .item .convert:hover {
    background-color: var(--title-color);
}

.convert-related .item .convert[side="left"] {
    left: 92px;
}

.convert-related .item .convert[side="right"] {
    right: 92px;
}

.convert-related .item .convert {
    font-size: 14px;
    text-align: center;
    position: absolute;
    background: #95959512;
    padding: 5px 8px 5px 8px;
    border-radius: 5px;
    top: 11px;
}

.convert-related .item .b-price {
    justify-content: flex-end;
    width: 100%;
    line-height: 18px;
    display: flex;
    align-items: center;
}

.convert-related .item .title {
    font-weight: 600;
    font-size: 14px;
    position: relative;
    top: 2px;
    min-width: 115px;
}

.convert-related .item .flag[side="left"] {
    margin-left: 15px;
}

.convert-related .item .flag[side="right"] {
    margin-right: 15px;
}

.convert-related .item img {
    height: 22px;
    border-radius: 2px;
    border: solid 1px #9d9d9d2e;
}

.convert-related {
    text-decoration: none !important;
    color: var(--color);
    font-weight: 400;
    margin-bottom: 4px;
}

.time_selector div:hover {
    background: #4647b1;
}

.time_selector .btn-p {
    background: #4647b169;
    color: white;
    margin-left: 5px;
    border-radius: 5px;
    padding: 0 13px;
    font-size: 12px;
    height: 24px;
    line-height: 24px;
    cursor: pointer;
}

.time_selector .custom {
    background: #607d8b;
}

.time_selector[side="left"] {
    float: right;
}

.time_selector[side="right"] {
    float: left;
}

.time_selector {
    display: flex;
}

.time_selector div:hover {
    background: #4647b1;
}

.time_selector .btn-p {
    background: #4647b169;
    color: white;
    margin-left: 5px;
    border-radius: 5px;
    padding: 0 13px;
    font-size: 12px;
    height: 24px;
    line-height: 24px;
    cursor: pointer;
}

.time_selector .custom {
    background: #607d8b;
}

.time_selector {
    float: left;
    display: flex;
}

.time_selector .active {
    background: #4647b1;
}

.desktop-none {
    display: none;
}

@media only screen and (max-width: 992px) {
    .arz-holder {
        padding: 0 15px;
    }

    .top-head h1 {
        padding-top: 115px;
    }

    .arz {
        padding: 0 !important;
    }

    .arz .table-1 {
        margin-bottom: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .arz .table-2 {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16);
    }

    .arz .table .head-2 {
        display: none;
    }

    .desktop-none {
        display: block;
    }

    .chart-body {
        height: 200px;
    }

    .arz-table {
        width: 100%;
    }

    .head-text {
        text-align: justify;
        font-size: 15px;
    }

    .top-head .bg {
        background-position: top;
        background-size: cover;
    }

    .top-head p {
        font-size: 14px;
    }

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

    .crypto .item {
        margin-bottom: 0;
    }

    .crypto h2,
    .gold h2 {
        font-size: 18px !important;
        line-height: 9px;
    }

    .crypto .price,
    .crypto .toman {
        left: 20px;
    }

    .bb {
        border-bottom: solid 1px #b0b1b0;
    }

    .sync_live {
        font-size: 6px;
        position: absolute;
        right: -13px;
        top: 7px;
    }
}

@media only screen and (max-width: 768px) {
    .arz .body .data .cell {
        padding: 0.5rem 0.5rem;
    }

    .arz .body .data .cell i {
        font-size: 9px;
        margin-right: 0;
    }

    .arz .body .data .cash,
    .arz .body .data .havale,
    .arz .body .data .rate {
        font-size: 12px;
    }

    .arz .body .head .cell {
        font-size: 12px;
    }

    .arz .body .data .title {
        white-space: pre;
        font-size: 13px;
        width: 105px;
    }

    .top-head h1 {
        font-size: 22px;
        padding-top: 50px;
    }

    .time_selector {
        margin-top: 14px;
        width: 100%;
        justify-content: space-evenly;
        margin-bottom: 8px;
    }
}

.system-code {
    background: black;
    border-radius: 5px;
    overflow: hidden;
}

.system-code .response {
    padding: 8px;
    color: #ffc107;
    background: #121212;
    margin: 15px;
    border-radius: 5px;
    overflow: hidden;
    text-align: left;
    font-size: 14px;
    line-height: 30px;
}

.system-code .body {
    padding: 8px;
    color: #4caf50;
}

.system-code .title {
    background: #2e2e2e;
    padding: 8px 10px;
    color: white;
    font-size: 15px;
}

.dark-mode .btn-dark:hover {
    background: #dfdfdf;
}

.dark-mode .btn-outline-dark:hover {
    background: #f3f3f3;
    color: black;
}

.dark-mode .btn-outline-dark {
    color: #f3f3f3;
    border-color: white;
}

.dark-mode .btn-dark {
    background: #f3f3f3;
    color: black;
    border-color: white;
}