/*-----------------
	1. General
-----------------------*/


@font-face {
    font-family: 'dana';
    src: url('../fonts/DanaVF.woff') format('woff-variations'),
    url('../fonts/DanaVF.woff') format('woff');
    font-display: fallback;
}

@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/MaterialIcons-Regular.eot); /* For IE6-8 */
    src: local('Material Icons'),
    local('MaterialIcons-Regular'),
    url(../fonts/MaterialIcons-Regular.woff2) format('woff2'),
    url(../fonts/MaterialIcons-Regular.woff) format('woff'),
    url(../fonts/MaterialIcons-Regular.ttf) format('truetype');
}

body {
    font-family: "dana", tahoma;
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
    font-size: .875rem;
    direction: rtl;
}

a {
    text-decoration: none;
}
#preloader {
    position: fixed;
    inset: 0;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#preloader img {
    width: 120px;
    margin-bottom: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 5px solid #ccc;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loaded #preloader {
    opacity: 0;
    pointer-events: none;
}

.loaded .main-content {
    opacity: 1;
}


/*.header {*/
/*    position: fixed;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    z-index: 100;*/
/*}*/

/*.header .box-item{*/
/*    max-width: 650px;*/
/*    margin: 0 auto;*/
/*    padding: 16px;*/
/*    text-align: center;*/
/*    border-radius: 0 0 12px 12px;*/
/*    background-color: rgba(87, 87, 87, 0.45);*/
/*    backdrop-filter: blur(10px);*/
/*    -webkit-backdrop-filter: blur(10px);*/
/*    color: white;*/
/*    box-shadow: 0 2px 8px rgba(0,0,0,0.1);*/
/*    align-items: center;*/
/*    justify-content: space-between;*/
/*    display: flex;*/
/*    font-size: 16px;*/
/*}*/


.main-content {

    background-image: url('/home/assets/img/bg.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    width: 600px;
    max-width: 100%;
    margin: auto;
    padding: 1rem;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: start;
}

.center-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.between-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.img-index {
    width: 50%;
    border: 5px solid #4288d2;
    border-radius: 15px;
}

.progress {
    direction: rtl;
}

.box-link {
    margin: 10px 0;
}

.icon-button {
    background: linear-gradient(145deg, #4a00e0, #8e2de2);
    border: 2px solid #bfaaff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
    padding: 10px;
    cursor: pointer;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    margin: 5px 0;
}

.icon-button .txt {
    font-size: 12px;
    text-align: center;
    margin-top: 5px;
    color: #fff;
}

.icon-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3);
}

.icon-button img {
    width: 50%;
}


.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 10px;
}

.player-frame {
    border: 3px solid #2a6cf0;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    margin: auto;
    width: clamp(32%, 28vh, 100%);
}

@media (max-height: 600px) {
    .player-frame {
        width: clamp(150px, 25vh, 300px);
    }
}

.player-frame img {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
}

.progress-fill {
    background: linear-gradient(90deg, #1cf3a5, #1cf3a5);
    height: 100%;
    color: black;
    text-align: center;
    font-size: 0.9rem;
    line-height: 100%;
}

.menu-item {
    /*background-color: #652fc9;*/
    border-radius: 12px;
    padding: 10px 5px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.box--1{

    background: linear-gradient(135deg,#1f64ef 0%, #5287f1 100%);
}

.box--2{
    background: linear-gradient(135deg,#ff8a00 0%, #ff5e3a 100%);
}

.box--3{
    background: linear-gradient(135deg,#19b866 0%, #2dd4bf 100%);
}

.box--4{
    background: linear-gradient(135deg, #f5c634 0%, #af980b 100%);
}

.box--5{
    background: linear-gradient(135deg,#7b61ff 0%, #793cbe 100%);
}

.box--6{
    background: linear-gradient(135deg,#ff6a88 0%, #ed3460 100%);
}
.menu-item img {
    width: 65px;
    height: 65px;
    margin-bottom: 6px;
}

.menu-item p {
    font-size: 0.9rem;
    margin: 0;
    color: #fff;
}

.box-card{
    height: 84vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.item-card{
    background-color: rgba(87, 87, 87, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px;
    margin: 5px;
    border-radius: 7px;
    text-align: center;
}


.item-card p{
    text-align: center;color: #fff;margin: 0 0 5px 0;
}

.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}
.modal-login .modal-content,.modal-login .modal-content{
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-login .modal-header{
    border-bottom:none;
}
.modal-login .modal-header h3{
    margin: auto;
    color: #fff;
    padding-top: 20px;
}
.modal-login .modal-content{
    border-radius: 50px;
    max-width: 350px;
    margin: auto;
}

.box-login {
    text-align: center;
    padding: 0 30px 30px 30px;
    border-radius: 10px;
}


.modal-login input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 15px;
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}
.div-login::before {
    content: "\1F4F1";
    position: absolute;
    left: 55px;
    top: 83px;
    transform: translateY(-50%);
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.modal-login button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(90deg, #a855f7, #22d3ee);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

.modal-login .title{
    font-size: 16px;
}

.modal-login button:hover {
    opacity: 0.9;
}

/*.box-login .phone-login{*/
/*    padding: .375rem .75rem;*/
/*    font-size: 1rem;*/
/*    font-weight: 400;*/
/*    line-height: 1.5;*/
/*    color: #212529;*/
/*    background-color: #fff;*/
/*    background-clip: padding-box;*/
/*    border: 1px solid #ced4da;*/
/*    -webkit-appearance: none;*/
/*    -moz-appearance: none;*/
/*    appearance: none;*/
/*    border-radius: .25rem;*/
/*    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;*/
/*}*/

/*.box-login .btn-login {*/
/*    background-color: #1e88e5;*/
/*    color: #fff;*/
/*    border: 0;*/
/*    padding: 5px 20px;*/
/*    border-radius: 2px;*/
/*}*/


.box-login .checkOTPForm {
    margin-right: auto;
    margin-left: auto;
}

.otp-input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #2f2f2f;
}

.otp-input:focus {
    border: 0;
    border-bottom: 1px solid #1e88e5;
    outline: none;
    box-shadow: none
}

.box-login .btn-login:disabled {
    background-color: #aed9ff;
}

.ltr{
    direction: ltr;
}
.rtl{
    direction: rtl;
}

.item-card .div-img {
    position: relative; display: inline-block; width: 100%;
}

.item-card .div-img img{
    border-radius: 7px;
    width: 100%; height: auto; display: block;
}

.item-card .div-img .price{
    position: absolute; bottom: 0; width: 100%; margin: 0;
    background: rgba(126, 73, 204, 0.6);
    color: white; text-align: center; padding: 5px 0;
}

.box-offcanvas-link{
    border-bottom: 1px solid #ececec;
    padding: 10px 0;
}

.img-detail-card{
    border-radius: 7px;
    border: 4px solid #fff;
    margin: 10px 0;
}
.img-detail-card img {
    border-radius: 7px;
}

.detail-card{
    color: #fff;
    margin: 10px 0;
    padding: 0 5px;
}
.box-price{
    padding:15px 0
}

.box-price .price{
    font-size: 18px;
    font-weight: bold;
    color: #00d285;
}

.box-price .discount{
    text-decoration-line: line-through;
    font-size: 18px;
    font-weight: bold;
    color: #d0d0d0;
}

.input-counting{
    width: 40px;
    text-align: center;
}

.increment{
    border: 1px solid #fff;
    width: 25px;
}

.decrement{
    border: 1px solid #fff;
    width: 25px;
}

.box-basket table tr th{
    text-align: center;
    color: #2f2f2f;
}

.box-basket table tr{
    background-color: #fff;
}

.box-checkout .td-title-1{
    color: #8a8a8a;
}


.card {
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    border: 3px solid #e0d120;
    position: relative;
    background-color: #000;

}
.points {
    position: absolute;
    top: 10px;
    right: 10px;
    background: orange;
    color: white;
    padding: 5px 5px 5px 12px;
    border-radius: 10px 10px 10px 25px;
    font-size: 14px;
    font-weight: bold;
}
.card img {
    width: 100%;
    object-fit: cover;
}
.info {
    padding: 5px 0;
    color: white;
    font-weight: bold;
    font-size: 16px;
    background: linear-gradient(135deg,#7b1cd9 0%, #0a3484 100%);
    border-radius: 14px 14px 0 0;
}
.info.blue {
    background: linear-gradient(to top, #002aff, #005eff);
}
.name {
    color: #fff;
    padding: 5px 10px;
    font-weight: bold;
}
.buy-btn {
    display: block;
    margin: 5px auto;
    padding: 5px 15px;
    background: #008917;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    width: 140px;
    border: 1px solid #61f16b;
}

.buy-btn:hover {
    background: #fff;
    color: #008917;
}

.modal-success-basket .modal-content {
    border-radius: 25px;
    max-width: 350px;
    margin: auto;
}
.modal-success-basket .modal-content .img-success {
    margin: -100px auto 10px auto;
    width: 170px;
}

.modal-success-basket .modal-content .modal-title {
    font-weight: bold;
    margin: 20px auto 35px auto;
}

.box-scan .bg-scan{
    margin: 0;
    background:
            radial-gradient(1200px 600px at 10% 10%, rgba(255,255,255,0.06), transparent 10%),
            linear-gradient(180deg, #14335a 0%, var(--purple-1) 30%, var(--purple-2) 65%, #ff9e2e 100%);
    background-blend-mode: overlay;
    /*display: flex;*/
    /*align-items: flex-start;*/
    /*justify-content: center;*/
    padding: 5px 20px;
    color: #fff;
}

.box-scan .bg-scan::after{
    content:"";
    pointer-events:none;
    position:fixed;
    inset:0;
    background-image:
            repeating-linear-gradient(45deg, rgba(255,255,255,0.01) 0 1px, transparent 1px 6px),
            radial-gradient(circle at 10% 20%, rgba(255,255,255,0.03), transparent 10%);
    mix-blend-mode: overlay;
    opacity: 0.8;
}

.box-scan .scan-card{
    width: 100%;
    border-radius: 18px;
    padding: 26px;
    background:
            linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.06)), linear-gradient(180deg, #f7ed5b 0%, #8a7d12 100%);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.03);
    border: 4px solid rgba(242,201,76,0.95); /* حاشیه طلایی */
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

.box-scan .scan-card::before{
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 12px;
    border: 3px solid rgba(242,201,76,0.15);
    pointer-events: none;
}

.box-scan .scan-top{
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.box-scan .scan-top .img-scan{
    width: 85px;
    margin-bottom: 30px;
}

.box-scan .divider{
    height: 5px;
    background-image: linear-gradient(90deg, rgba(242,201,76,0.0) 0 10%, rgba(242,201,76,0.6) 40%, rgba(242,201,76,0.0) 100%);
    margin: 12px 0 20px;
    opacity: 0.9;
}

.box-scan .scan-bottom{
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,245,247,0.98));
    border-radius: 12px;
    padding: 28px 20px;
    display:flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.06);
}

.box-scan .serial-input{
    width: 200px;
    min-width: 180px;
    padding: 10px 12px;
    border-radius: 4px;
    border: 2px solid rgba(123,75,211,0.25);
    outline: none;
    font-size: 15px;
    background: transparent;
    box-shadow: 0 2px 8px rgba(90,46,166,0.06);
}

.box-scan .btn-primary, .box-scan .btn-secondary{
    cursor: pointer;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 6px 16px rgba(20,20,40,0.45);
    transform: translateY(0);
    transition: transform .12s ease, box-shadow .12s ease;
}

.box-scan .btn-primary{
    background: linear-gradient(to top, #002aff, #005eff);
    color: #fff;
    border: 3px solid var(--gold);
    padding: 14px 36px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    box-shadow: 0 8px 30px rgba(90,46,166,0.45);
    width: 200px;
}

.box-scan .btn-secondary{
    background: linear-gradient(to top, #002aff, #005eff);
    color: #fff;
    padding: 12px 28px;
    margin-top: 6px;
    width: 200px;
}

.box-scan .btn-primary:hover, .box-scan .btn-secondary:hover{
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(10,10,30,0.55);
    background: #fff;
    color: #005eff;
}
.menu-item:hover{
    box-shadow: 0 4px 6px #c6c6c6;
}

.sidebar-list-item{
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 12px 12px;
    border-radius: 10px;
    box-shadow: 0 2px 3px #0000001a;
    border: 1px solid #F3F3F3;
    text-align: center;
    color: #000;
    font-weight: 600;
    background-color: #fff;
    cursor: pointer;
    margin-bottom: 20px;
}

.sidebar-list-item p{
    color: #fff;
}
.sidebar-list-item img {
    max-width: 65px;
    font-size: 0.9rem;
}

.leaderboard {
    color: #fff;
    border-radius: 15px;
    border: 1px solid #1d2588;
    font-size: 18px;
    margin-bottom: 75px;
}

.leaderboard table {
    background-color: #161b55;
    width: 100%;
    border-collapse: collapse;
    border-radius: 15px;
    overflow: hidden;
}
.leaderboard th {
    text-align: center;
    padding: 10px;
}


.leaderboard td {
    padding: 10px;
    text-align: center;
}

.leaderboard tr:nth-child(2) {
    color: #ffd700;
}

/* Gold for 1st row */
.leaderboard tr:nth-child(3) {
    color: #c0c0c0;
}

/* Silver for 2nd row */
.leaderboard tr:nth-child(4) {
    color: #cd7f32;
}

/* Bronze for 3rd row */

/*.leaderboard tr:nth-child(odd) {*/
/*    background-color: #1a1a3d;*/
/*}*/
.leaderboard tr:nth-child(even):not(:first-child) td {
    background-color: #1a1a3d;
}
.box-league-me{
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    border-radius: 15px; padding: 20px 10px;font-size: 18px;
}

.box-league-me .item{
    text-align: center;
    padding: 15px 10px;
    border-radius: 15px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
}
