:root {
    --tg-theme-bg-color: #1e1e1e;
    --tg-theme-text-color: #ffffff;
    --tg-theme-link-color: #57a7e0;
    --tg-theme-hint-color: #7d7d7d;
    --tg-theme-button-color: #50a8eb;
    --tg-theme-button-text-color: #ffffff;
    --tg-theme-secondary-bg-color: #000000;
    --tg-theme-subtitle-text-color: #7e7e7f;
    --tg-color-scheme: dark;
    --tg-theme-section-bg-color: #17212b;
    --default-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    --default-fa-font: Vazirmatn, Tahoma, sans-serif;
    --danger-text-color: #e75454;

}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../font/Vazirmatn[wght].woff2') format('woff2 supports variations'),
    url('../font/Vazirmatn[wght].woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
html body{
    --bg-color: #fff;
    --secondary-bg-color: #efefef;
    --separator-color: #D9D9D9;
    color: var(--tg-theme-text-color);
    margin: 0;
    padding: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-font-smoothing: antialiased;

}
html.dark body{
    --bg-color: #000;
    --secondary-bg-color: #262626;
    --separator-color: #000;
}
body {
    font-family: var(--default-font);
    user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    cursor: default;
    color-scheme: var(--tg-color-scheme);
    min-width: 100%;
    background-color: var(--bg-color);
}
* {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    /*box-sizing: border-box;*/
}
body.fa {
    font-family: var(--default-fa-font);
    font-size: 0.9rem;
}

body.fa, body.ar {
    direction: rtl;
    line-height: 21px;
}
a {
    color: var(--tg-theme-link-color);
}

.hide {
    display: none !important;
}

#loading {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 9999;
    background-color: var(--bg-color);
}

#loading dotlottie-player {
    /*top: 50%;*/
    /*left: 50%;*/
    /*transform: translate(-50%, -50%);*/
    top: 20%;
    margin: 0 auto;
    position: relative;
}

.error {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 9998;
    background-color: var(--tg-theme-bg-color);
    text-align: center;
}

.error .container {
    top: 10%;
    margin: 0 auto;
    position: relative;
}

.error .container dotlottie-player {
    margin: 0 auto;
}

.error .container h2 {
    color: var(--danger-text-color);
    padding: 0;
    font-size: 1.2em;
    margin: 0 0 1.5em;
    font-weight: bold;
}

body.fa .error .container h2 {
    font-weight: bold;
    font-family: var(--default-fa-font);
}

.error .container h3 {
    color: var(--tg-theme-text-color);
    font-weight: normal;
}

.error .container h4 {
    color: var(--tg-theme-hint-color);
    font-weight: normal;
}

.error .container h5 {
    margin: 0 25px 25px;
    color: var(--danger-text-color);
    font-weight: bold;
}

body.fa .error .container h5 {
    font-weight: normal;
    font-family: var(--default-fa-font);
    font-size: 0.9rem;
}

.error .container span {
    display: block;
    font-size: 0.9rem;
    margin: 0 25px 25px;
    font-weight: normal;
}
.media-container {
    display: flex;
    flex-wrap: wrap;
    /*justify-content: space-between;*/
    justify-content: flex-start;
    direction: ltr;
    gap: 3px;
}

.media-box {
    /*width: calc(33.333% - 0.1em);*/
    /*margin-bottom: 0.2em;*/
    overflow: hidden;
    position: relative;
    background-color: var(--secondary-bg-color);
    display: block;
    flex: 0 0 calc(33.333% - 2px);

}
.media-box::before {
    content: '';
    display: block;
    padding-top: 100%;
}
.media-box.rectangle::before {
    content: '';
    display: block;
    padding-top: 170%;
}
.media-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    transition: all 0.3s;
    cursor: pointer;
}

.media-box input[type="checkbox"]{
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    visibility: hidden;
}
.media-box input[type="checkbox"]:checked + span {
    background-color: var(--tg-theme-button-color);
    border-color: var(--tg-theme-bg-color);
}
.media-box:has(input[type="checkbox"]:checked) img{
    width: 80%;
    height: 80%;
    padding: 14px;
}
.media-box.rectangle:has(input[type="checkbox"]:checked) img{
    padding: 23px 14px;
}
.media-box input[type="checkbox"]:checked + span:after {
    opacity: 1;
}
.media-box span {
    background-color: rgba(0,0,0,0.4);
    border: 0.1rem solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    height: 20px;
    left: 5px;
    position: absolute;
    top: 5px;
    width: 20px;
}
.media-box span:after {
    border: 2px solid var(--tg-theme-button-text-color);
    border-top: none;
    border-right: none;
    content: "";
    height: 5px;
    left: 4px;
    opacity: 0;
    position: absolute;
    top: 6px;
    transform: rotate(-45deg);
    width: 10px;
}
.media-box .video-icon{
    background-image: url("../img/video_icon.png");
    position: absolute;
    width: 18px;
    height: 18px;
    top: 6px;
    right: 6px;
    background-size: 38px;
    background-repeat: no-repeat;
    background-position: -10px -10px;
}
.media-box .carousel-icon{
    background-image: url("../img/carousel_icon.png");
    position: absolute;
    width: 16px;
    height: 16px;
    top: 6px;
    right: 6px;
    background-size: 31px;
    background-repeat: no-repeat;
    background-position: -8px -8px;
}
.media-box .time{
    position: absolute;
    width: 100%;
    text-align: left;
    top: 8px;
    margin: 0;
    padding: 0 0 0 32px;
    font-weight: normal;
    height: 20px;
    font-size: 0.8rem;
    color: #cccccc;
}
.media-box.circle{
    border-radius: 11px;
    flex: 0 0 calc(33.333% - 14px);
    cursor: pointer;
}

.media-box.circle img{
    border-radius: 50%;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90px;
    height: 90px;
    top: 6px;
    border: 1px solid var(--tg-theme-secondary-bg-color);
}
.media-box.circle p.title{

    text-align: center;
    font-weight: normal;
    font-size: 0.8rem;
    margin: 0 auto 7px;
    text-overflow: ellipsis;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}
#highlights-container{
    gap: 21px;
    padding: 10px;
}
#next-loader {
    text-align: center;
    padding: 10px 0;
}
.posts-header{
    text-align: center;
    padding: 15px;
}
/*.posts-header span{*/
/*    background-color: var(--tg-theme-section-bg-color);*/
/*    border-radius: 12px 12px 0 0;*/
/*    padding: 9px 30px;*/
/*    display: inline-block;*/
/*}*/
.posts-header .container{
    width: 100%;
    margin: 0 auto;
}
.posts-header .container button{
    width: 100%;
    display: block;
    /*line-height: 10px;*/
    padding: 0 16px;
    height: 42px;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: var(--secondary-bg-color);
    color: var(--tg-theme-text-color);
    outline: none;
    border: none;
    margin: 0 auto;
    cursor: pointer;
}
.posts-header .container button[disabled]{
    /*background-color: var(--tg-theme-secondary-bg-color);*/
    color: var(--tg-theme-hint-color);
}
body.fa button {
    font-family: var(--default-fa-font) !important;
    font-weight: bold;
}
.posts-header .container .side-by-side-container {
    display: flex;
    /* width: 80px; */
    justify-content: space-between;
    margin: 10px auto 0;
    position: relative;
    gap: 10px;
}
body.fa .posts-header .container button i, body.ar .posts-header .container button i{
    position: relative;
    top: 2px;
}
.tab-bar {
    display: flex;
    width: 100%;
    padding: 0;
    margin-bottom: 5px;
    direction: ltr;
}

.tab-item {
    flex-grow: 1;
    text-align: center;
    padding: 0.8rem 0;
    list-style-type: none;
    margin: 0;
    color: var(--tg-theme-subtitle-text-color);
    border-bottom: 0.05em solid var(--tg-theme-bg-color);
    cursor: pointer;
    font-family: var(--default-fa-font);
    font-size: 13px;
}
.tab-item.active{
    border-bottom: 0.1em solid var(--tg-theme-text-color);
    color: var(--tg-theme-text-color);
}
body.fa .tab-item, body.ar .tab-item{
    direction: rtl;
}
body.fa .tab-item i, body.ar .tab-item i{
    font-size: 17px;
    top: 4px;
    position: relative;
}
#search-box {
    width: 100%;
    height: 37px;
    border-radius: 9px;
    outline: none;
    border: 0;
    font-family: var(--default-font);
    padding: 6px 20px 6px 40px;
    box-sizing: border-box;
    direction: ltr;
}
#search-box:hover, #search-box:active, #search-box:focus{
    outline: none;
    border: 0;
}

body.fa #search-box, body.ar #search-box {
    font-family: var(--default-fa-font);
}

.container.search label{
    margin: 0 auto;
    width: 90%;
    display: block;
    position: relative;
}
.container.search i{
    top: 11px;
    position: absolute;
    left: 14px;
    color: var(--tg-theme-subtitle-text-color);
}

.profile-container {
    display: flex;
    flex-direction: column;
    direction: ltr;
}

.profile {
    display: flex;
    align-items: center;
    padding: 5px 17px;
    cursor: pointer;
}
.profile:hover{
    background-color: var(--secondary-bg-color);
}
.profile-image img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: relative;
    display: block;
    background-color: var(--secondary-bg-color);
}
.profile-image img::before{
    content: '';
    display: block;
    padding-top: 100%;
}
.profile-info {
    display: flex;
    flex-direction: column;
    margin-left: 17px;
}

.profile-name {
    font-size: 0.9em;
    font-weight: normal;
    margin: 0;
    direction: ltr;
}
.profile-name i {
    color: #0993ee;
}
.profile-description {
    font-size: 0.9em;
    font-weight: normal;
    margin: 0;
    direction: ltr;
}

#video-player {
    width: 100%;
    height: 100%;
    /*background-color: transparent;*/
    /*z-index: 999;*/
    /*position: absolute;*/
    /*left: 0;*/
}


.dash-video-player .head {
    width: 100%;
    height: 60px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    background: -moz-linear-gradient(to bottom,rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, 0) 100% );
    background: -webkit-linear-gradient(to bottom, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, 0) 100%);
    background: linear-gradient(to bottom, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, 0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#a6000000', endColorstr='#00000000', GradientType=0);
}
.dash-video-player .head .user {
    position: absolute;
    top: 10px;
    left: 20px;
    z-index: 1001;
}

.dash-video-player .head .user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.dash-video-player .head .user p {
    color: #fff;
    float: right;
    margin-left: 10px;
    font-size: 13px;
    font-family: var(--default-font);
}
.dash-video-player .videoContainer{
    position: absolute;
    width: 100%;
    height: calc(100% - 55px);
}




body.upgrade{
    background: rgb(241, 241, 241);
}
html.dark body.upgrade{
    background: rgb(35, 46, 60);
}


.card{
    background-color: var(--tg-theme-section-bg-color);
    margin-bottom: 12px;
    padding: 13px 20px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.06);
}
.card:last-child{
    box-shadow: none;
    margin-bottom: 0;
}
.card .title{
    display: block;
    /*border-bottom: 1px solid var(--tg-theme-subtitle-text-color);*/
    padding-bottom: 8px;
    color: var(--tg-theme-subtitle-text-color);
    margin-bottom: 10px;
}

.upgrade-page .header{
    text-align: center;
    padding: 20px 15px;
}

.upgrade-page .header img{
    width: 60px;
    height: 60px;
    margin-top: 15px;
}
.upgrade-page .header h1{
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 0;
}
.upgrade-page .header h2{
    font-size: 1em;
    font-weight: normal;
    margin-top: 8px;
    color: var(--tg-theme-subtitle-text-color);
}

.upgrade-page .radio-button {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--tg-theme-button-color);
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    outline: none;
    top: -2px;
}
.upgrade-page .radio-button[disabled]{
    border: 2px solid var(--tg-theme-subtitle-text-color)
}
.upgrade-page .radio-button:checked::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--tg-theme-button-color);
}



.subscription-plan {
    padding: 16px 0;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-bottom: 1px solid var(--separator-color);
    cursor: pointer;
}

.subscription-plan:last-child {
    border-bottom: 0;
}

.subscription-plan .info{
    position: absolute;
    left: 50px;
    display: flex;
    flex-direction: column;
    text-align: left;
    /*top: 11px;*/
}
body.fa .subscription-plan .info, body.ar .subscription-plan .info{
    right: 50px;
    text-align: right;
    left: inherit;
}
.subscription-plan .info .duration{
    font-weight: bold;
}
.subscription-plan .info .subtitle{
    font-weight: normal;
    color: var(--tg-theme-subtitle-text-color);
}

.subscription-plan .price-info{
    position: absolute;
    right: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
    /*top: 11px;*/
}
body.fa .subscription-plan .price-info, body.ar .subscription-plan .price-info{
    left: 0;
    right: inherit;
    /*text-align: center;*/
}
.subscription-plan .price-info .price1{
    font-weight: bold;
}
.subscription-plan .price-info .original-price{
    font-weight: normal;
    color: var(--tg-theme-subtitle-text-color);
    font-size: 0.8rem;
    text-decoration-line: line-through;
}


.subscription-plan .price{
    font-weight: bold;
    top: 3px;
    position: relative;
}
#ton-connect{
    width: fit-content;
    margin: 0 auto 12px;
    direction: ltr;
}
[data-tc-dropdown-container="true"],
[data-tc-wallets-modal-container="true"],
[data-tc-actions-modal-container="true"],
[data-tc-wallets-modal-universal-mobile="true"],
[data-tc-wallets-modal-universal-desktop="true"],
[data-tc-wallets-modal-connection-mobile="true"],
[data-tc-wallets-modal-connection-desktop="true"],
[data-tc-wallets-modal-list="true"],
[data-tc-wallets-modal-info="true"],
[data-tc-confirm-modal="true"],
[data-tc-transaction-sent-modal="true"],
[data-tc-transaction-canceled-modal="true"],
[data-tc-list-notifications="true"],
[data-tc-notification-confirm="true"],
[data-tc-notification-tx-sent="true"],
[data-tc-notification-tx-cancelled="true"] {
    direction: ltr;
}


.payment-method {
    padding: 16px 0;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-bottom: 1px solid var(--separator-color);
    cursor: pointer;
}

.payment-method:last-child {
    border-bottom: 0;
}

.payment-method .info{
    font-weight: bold;
    position: relative;
    top: 10px;
}
.payment-method .name-and-logo .logo{
    width: 50px;
    display: inline-block;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    margin-right: 11px;
}
body.fa .payment-method .name-and-logo .logo, body.ar .payment-method .name-and-logo .logo{
    margin-left: 11px;
}
.payment-method .name-and-logo .logo i {
    top: 50%;
    position: relative;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    font-size: 1.4rem;
    color: #fff;
}

.invoice-item {
    padding: 16px 0;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-bottom: 1px solid var(--separator-color);
}
.invoice-item:last-child {
    border-bottom: 0;
}
.invoice-item .invoice-item-title{
    color: var(--tg-theme-hint-color);
}


#mobile-box {
    width: 100%;
    height: 50px;
    border-radius: 9px;
    outline: none;

    font-family: var(--default-font);
    padding: 6px 20px 6px 45px;
    box-sizing: border-box;
    direction: ltr;
    -moz-appearance: textfield;
    font-size: 0.9rem;
    line-height: 50px;
    background-color: var(--tg-theme-section-bg-color);
    border: 1px solid var(--tg-theme-button-color);
}
#mobile-box::-webkit-outer-spin-button,
#mobile-box::-webkit-inner-spin-button {
    -webkit-appearance: none;
    /*margin: 0;*/
}

#mobile-box:hover, #mobile-box:active, #mobile-box:focus{
    outline: none;
    /*border: 1px solid var(--separator-color);*/
}
.container.mobile{
    padding: 0 20px;
}
.container.mobile .mobile-form label{
    margin: 0 auto;
    width: 90%;
    display: block;
    position: relative;
}
.container.mobile .mobile-form span{
    top: 12px;
    position: absolute;
    left: 6px;
    direction: ltr;
    color: var(--tg-theme-subtitle-text-color);
    border-right: 1px solid var(--tg-theme-button-color);
    height: 25px;
    line-height: 31px;
    padding-right: 6px;
    font-weight: normal;
    font-size: 0.9rem;
}
.container.mobile .page-title{
    text-align: center;
    margin-bottom: 20px;
}
#enter-phone-page{
    margin-top: 50px;
}



#code-box {
    width: 100%;
    height: 50px;
    border-radius: 9px;
    outline: none;
    font-family: var(--default-font);
    padding: 6px 20px 6px 20px;
    box-sizing: border-box;
    direction: ltr;
    -moz-appearance: textfield;
    font-size: 0.9rem;
    line-height: 50px;
    background-color: var(--tg-theme-section-bg-color);
    border: 1px solid var(--tg-theme-button-color);
    text-align: center;
}
#code-box::-webkit-outer-spin-button,
#code-box::-webkit-inner-spin-button {
    -webkit-appearance: none;
    /*margin: 0;*/
}

#code-box:hover, #code-box:active, #code-box:focus{
    outline: none;
    /*border: 1px solid var(--separator-color);*/
}
.container.verification-code{
    padding: 0 20px;
}
.container.verification-code .code-form label{
    margin: 0 auto;
    width: 90%;
    display: block;
    position: relative;
}
.container.verification-code .code-form span{
    top: 0;
    position: absolute;
    left: 6px;
    direction: ltr;
    color: var(--tg-theme-subtitle-text-color);
    border-right: 1px solid var(--tg-theme-subtitle-text-color);
    height: 50px;
    line-height: 56px;
    padding-right: 6px;
    font-weight: normal;
    font-size: 0.9rem;
}
.container.verification-code .page-title{
    text-align: center;
    margin-bottom: 20px;
}
#enter-code-page{
    margin-top: 50px;
}