@font-face {
    font-family: dana;
    font-style: normal;
    font-weight: 10;
    src: url('../fonts/woff2/Dana-Hairline.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ url('../fonts/woff/Dana-Hairline.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
    font-family: dana;
    font-style: normal;
    font-weight: 100;
    src: url('../fonts/woff2/Dana-Thin.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ url('../fonts/woff/Dana-Thin.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
    font-family: dana;
    font-style: normal;
    font-weight: 200;
    src: url('../fonts/woff2/Dana-UltraLight.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ url('../fonts/woff/Dana-UltraLight.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
    font-family: dana;
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/woff2/Dana-Light.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ url('../fonts/woff/Dana-Light.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
    font-family: dana;
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/woff2/Dana-Medium.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ url('../fonts/woff/Dana-Medium.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
    font-family: dana;
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/woff2/Dana-DemiBold.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ url('../fonts/woff/Dana-DemiBold.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
    font-family: dana;
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/woff2/Dana-ExtraBold.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ url('../fonts/woff/Dana-ExtraBold.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
    font-family: dana;
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/woff2/Dana-Black.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ url('../fonts/woff/Dana-Black.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
    font-family: dana;
    font-style: normal;
    font-weight: bold;
    src: url('../fonts/woff2/Dana-Bold.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ url('../fonts/woff/Dana-Bold.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
    font-family: dana;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/woff2/Dana-Regular.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/ url('../fonts/woff/Dana-Regular.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

body {
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}

body, h1, h2, h3, h4, h5, h6, input, textarea, p, a, span {
    font-family: dana !important;
}

.main-wrapper {
    background: url('../images/bg.png'), #070B62;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

header {
    direction: ltr;
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999999;
}

#total_coins,
#notif,
.main-content .tabs {
    background: #080a4f;
    border: 1px solid #2b3885;
    border-radius: 15px;
}

.main-content {
    min-width: 350px;
}

.coins span, .missions-title span {
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(7, 11, 98, 1) 100%);
}

.tap-game span {
    color: #376bf0;
    border: 2px solid #1b4dcc;
    border-radius: 24px;
    padding: 8px 6px;
    text-align: center;
}

.start_mission {
    background: #E6007E;
}

.mission_passed {
    color: #376bf0;
    border: 2px solid #1b4dcc;
    border-radius: 24px;
    width: 25%;
    text-align: center;
}

.get_reward_btn {
    color: #fff !important;
    border: none !important;
    background: linear-gradient(180deg, rgba(255, 143, 205, 1) 0%, rgba(228, 0, 126, 1) 100%);
    box-shadow: #E6007E 0 0 30px 8px;
}

.tabs a {
    position: relative;
}

.tabs a.active-tab::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -16px;
    width: 100%;
    height: 10px;
    background: linear-gradient(0deg, #E4007E -30%, transparent);
}

.card .card-right-col,
.card .card-left-col {
    background: #080a4f;
    padding: 15px 10px;
    border-radius: 15px;
    border: 1px solid #2b3885;
}

.discount-copy {
    color: #E6007E;
}

.discount-copy #code {
    color: #E6007E;
    border-color: #E6007E;
}

.reward_text {
    font-size: 8px;
}

.first-order {
    font-size: 9px;
    top: 0;
    width: 100%;
    right: 0;
    border-radius: 15px 15px 0 0;
    background: #e5127f;
}

.cashback {
    font-size: 9px;
    bottom: 0;
    width: 100%;
    right: 0;
    border-radius: 0 0 15px 15px;
    background: #0078ff;
}

#profile::before {
    content: url('../images/profile_top.png');
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-30%, -20%);
}

#profile .profile-pic img {
    border-radius: 50%;
    border: 5px solid #E6007E;
}

#profile .profile-pic {
    position: relative;
}

#profile .profile-pic::after {
    content: url("../images/edit-profile-photo.png");
    position: absolute;
    right: 100px;
    bottom: 5px;
}

footer {
    background: #080a4f;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: rgba(34, 34, 37, 0.2) 0px 8px 24px;
    border: 1px solid #2b3885;
    z-index: 2000;
}

footer a {
    padding: 10px;
    margin: 0;
    border-radius: 10px;
    width: 48px;
    height: 48px;
    position: relative;
}

footer a.active {
    background: linear-gradient(0deg, #E4007E -20%, transparent);
}

footer a img {
    width: 24px;
    height: auto;
    top: 50%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
}

img#tap-img {
    transition: transform 0.1s ease-in-out;
}

.plus-one {
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    color: #E6007E;
    opacity: 1;
    animation: moveUp 1s ease-out forwards;
}

.feedback {
    position: absolute;
    background: #fff;
    padding: 6px;
    border-radius: 8px 8px 0 0;
    top: -38px;
    left: 30px;
}

footer a.feedback img {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

footer a.feedback {
    width: auto;
    height: auto;
    color: #000;
}

/* Celebrate After Win */
.confetti {
    display: none;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1000;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 30px;
    background: #ffd300;
    top: 0;
    opacity: 0;
}

.confetti-piece:nth-child(1) {
    left: 7%;
    -webkit-transform: rotate(-40deg);
    -webkit-animation: makeItRain 1000ms infinite ease-out;
    -webkit-animation-delay: 182ms;
    -webkit-animation-duration: 1116ms;
}

.confetti-piece:nth-child(2) {
    left: 14%;
    -webkit-transform: rotate(4deg);
    -webkit-animation: makeItRain 1000ms infinite ease-out;
    -webkit-animation-delay: 161ms;
    -webkit-animation-duration: 1076ms;
}

.confetti-piece:nth-child(3) {
    left: 21%;
    -webkit-transform: rotate(-51deg);
    -webkit-animation: makeItRain 1000ms infinite ease-out;
    -webkit-animation-delay: 481ms;
    -webkit-animation-duration: 1103ms;
}

.confetti-piece:nth-child(4) {
    left: 28%;
    -webkit-transform: rotate(61deg);
    -webkit-animation: makeItRain 1000ms infinite ease-out;
    -webkit-animation-delay: 334ms;
    -webkit-animation-duration: 708ms;
}

.confetti-piece:nth-child(5) {
    left: 35%;
    -webkit-transform: rotate(-52deg);
    -webkit-animation: makeItRain 1000ms infinite ease-out;
    -webkit-animation-delay: 302ms;
    -webkit-animation-duration: 776ms;
}

.confetti-piece:nth-child(6) {
    left: 42%;
    -webkit-transform: rotate(38deg);
    -webkit-animation: makeItRain 1000ms infinite ease-out;
    -webkit-animation-delay: 180ms;
    -webkit-animation-duration: 1168ms;
}

.confetti-piece:nth-child(7) {
    left: 49%;
    -webkit-transform: rotate(11deg);
    -webkit-animation: makeItRain 1000ms infinite ease-out;
    -webkit-animation-delay: 395ms;
    -webkit-animation-duration: 1200ms;
}

.confetti-piece:nth-child(8) {
    left: 56%;
    -webkit-transform: rotate(49deg);
    -webkit-animation: makeItRain 1000ms infinite ease-out;
    -webkit-animation-delay: 14ms;
    -webkit-animation-duration: 887ms;
}

.confetti-piece:nth-child(9) {
    left: 63%;
    -webkit-transform: rotate(-72deg);
    -webkit-animation: makeItRain 1000ms infinite ease-out;
    -webkit-animation-delay: 149ms;
    -webkit-animation-duration: 805ms;
}

.confetti-piece:nth-child(10) {
    left: 70%;
    -webkit-transform: rotate(10deg);
    -webkit-animation: makeItRain 1000ms infinite ease-out;
    -webkit-animation-delay: 351ms;
    -webkit-animation-duration: 1059ms;
}

.confetti-piece:nth-child(11) {
    left: 77%;
    -webkit-transform: rotate(4deg);
    -webkit-animation: makeItRain 1000ms infinite ease-out;
    -webkit-animation-delay: 307ms;
    -webkit-animation-duration: 1132ms;
}

.confetti-piece:nth-child(12) {
    left: 84%;
    -webkit-transform: rotate(42deg);
    -webkit-animation: makeItRain 1000ms infinite ease-out;
    -webkit-animation-delay: 464ms;
    -webkit-animation-duration: 776ms;
}

.confetti-piece:nth-child(13) {
    left: 91%;
    -webkit-transform: rotate(-72deg);
    -webkit-animation: makeItRain 1000ms infinite ease-out;
    -webkit-animation-delay: 429ms;
    -webkit-animation-duration: 818ms;
}

.confetti-piece:nth-child(odd) {
    background: #7431e8;
}

.confetti-piece:nth-child(even) {
    z-index: 1;
}

.confetti-piece:nth-child(4n) {
    width: 5px;
    height: 12px;
    -webkit-animation-duration: 2000ms;
}

.confetti-piece:nth-child(3n) {
    width: 3px;
    height: 10px;
    -webkit-animation-duration: 2500ms;
    -webkit-animation-delay: 1000ms;
}

.confetti-piece:nth-child(4n-7) {
    background: red;
}

@-webkit-keyframes makeItRain {
    from {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    to {
        -webkit-transform: translateY(350px);
    }
}

/* /Celebrate After Win */

/*Complete image tap*/
.tap-img-container {
    position: relative;
    width: 300px;
    height: 300px;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
}

.base-image {
    width: 100%;
    height: 100%;
    opacity: 0.3;
    object-fit: cover;
    border-radius: 50%;
}

.reveal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.part {
    position: absolute;
    top: 0;
    width: 33.33%;
    height: 100%;
    background-image: url("../images/tap-game.png");
    background-size: 300% 100%;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.part-1 {
    left: 0;
    background-position: 0% 0;
}

.part-2 {
    left: 33.33%;
    background-position: 50% 0;
}

.part-3 {
    left: 66.66%;
    background-position: 100% 0;
}

.fade-in {
    opacity: 1;
}

/* /Complete image tap*/

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal .modal-content {
    background: white;
    padding: 20px;
    margin: 100px auto;
    width: 400px;
    border-radius: 10px;
    position: relative;
}

.modal .close {
    position: absolute;
    left: 10px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

.modal textarea {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    box-sizing: border-box;
}

.modal button {
    margin-top: 10px;
    padding: 10px 20px;
}

.loader-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loader-overlay.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #444;
    border-top: 6px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes moveUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px);
        opacity: 0;
    }
}

@media screen and (max-height: 700px) {
    /*.tap-game-page {*/
    /*    align-items: baseline !important;*/
    /*    padding-top: 20%;*/
    /*}*/
    #profile::before {
        transform: translate(-30%, -30%);
    }
}

/* Leaderboard */
#current-rank {
    width: 100%;
    text-align: center;
    position: relative;
}

#current-rank img {
    margin: 0 auto 25px auto;
    border-radius: 50%;
    width: 70px;
    /*box-shadow: #E4007E 0 0 10px 10px;*/
    position: relative;
}

#current-rank:before {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    top: -15px;
}

/*#current-rank:before {*/
/*    content: url(../images/crown.svg);*/
/*    position: absolute;*/
/*    width: 64px;*/
/*    height: auto;*/
/*    top: -60px;*/
/*    left: 50%;*/
/*    transform: translateX(-50%);*/
/*}*/

#leaderboard_xp {
    position: relative;
    background: rgb(255 255 255 / 10%);
    max-width: 50%;
    margin: 1rem auto;
    padding: 8px 24px;
    border-radius: 50px;
    display: inline-block;
}

#leaderboard_xp:before {
    content: url("../images/cup-xp.png");
    position: absolute;
    width: 42px;
    height: auto;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
}

.leaderboard_rank {
    color: #E4007E;
}

#leaderboard_list {
    max-height: 300px;
    overflow: hidden;
    overflow-y: auto;
    background: rgb(255 255 255 / 8%);
    padding: 15px;
    border-radius: 15px;
}

#leaderboard_list .leaderboard_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-radius: 15px;
    background: linear-gradient(#070A42, #070A42) padding-box, linear-gradient(to right, #7FA2FA, #4B6094) border-box;
    border: 1px solid transparent;
}

#leaderboard_list .leaderboard_item .lb_item_detail {
    display: flex;
    gap: 15px;
    align-items: center;
}

#leaderboard_list .leaderboard_item .lb_item_detail img {
    width: 48px;
    border-radius: 50%;
}

#leaderboard_list .leaderboard_item .rank {
    color: #e4027f;
    font-size: 24px;
}

#leaderboard_list .leaderboard_item .lb_item_xp {
    display: flex;
    align-items: center;
    gap: 10px;
}

#leaderboard_list .leaderboard_item .lb_item_xp span {
    text-align: left;
}

#leaderboard_list .leaderboard_item .lb_item_xp img {
    width: 32px;
    height: auto;
}

#leaderboard_list .leaderboard_item:first-child {
    background: linear-gradient(90deg, #FF00C7, #8A01F5);
    border: none;
}

#leaderboard_ref {
    display: inline-block;
    top: 50%;
    position: absolute;
    transform: translateY(-50%);
    left: 50px;
}

#leaderboard_ref img {
    box-shadow: none;
    width: 36px;
}

.ref-info {
    border: 1px solid #7fa2fb;
    border-radius: 15px;
    padding: 10px 20px;
    background: #090B50;
}

.ref-info img {
    width: 32px;
    height: auto;
    display: inline-block;
}

.personal_message_item, .group_message_item {
    border: 1px solid #7fa2fb;
    border-radius: 10px;
    padding: 10px;
    background: #090B50;
}

.personal_message_item span.message_time {
    position: absolute;
    left: 10px;
    top: 10px;
    font-size: 8px;
}

.personal_message_item img {
    margin-left: 5px;
}

.personal_message_item p.message_dots,
.group_message_item p.message_dots {
    color: #E4007E;
    text-align: center;
    font-weight: bold;
}

.group_message_item span.message_time {
    font-size: 8px;
}

.group_message_item .group_message_item_details {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.gap-2 {
    gap: calc(var(--spacing) * 2);
}

.mt-2 {
    margin-top: calc(var(--spacing) * 2);
}

.header-info #total_coins, .header-info #notif {
    height: 45px;
}

.message-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.message-modal.hidden {
    display: none;
}

.message-modal .modal-content {
    padding: 15px;
    width: 90%;
    border-radius: 10px;
    position: relative;
    border: 1px solid #7fa2fb;
    background: #090B50;
}

/* ✅ انیمیشن باز شدن */
.message-modal .animate {
    animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0
    }
    to {
        transform: scale(1);
        opacity: 1
    }
}

.message-modal .close-modal {
    position: absolute;
    left: 15px;
    top: 10px;
    cursor: pointer;
    font-size: 22px;
}

/* ✅ لودر */
.message-modal .loader {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top: 4px solid #333;
    border-radius: 50%;
    margin: 40px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.message-modal .hidden {
    display: none;
}

.level-box {
    /*background: #090b50;*/
    padding: 15px;
    /*border-radius: 10px;*/
    color: white;
    /*margin: 16px auto 0 auto;*/
    /*border: 1px solid #7fa2fb;*/
}

.progress {
    width: 100%;
    height: 10px;
    background: #fff;
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
    direction: ltr;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FF8ECD, #E4007E);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.percent {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.8;
}

.offer_overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 70%);
    z-index: 999999;
    border-radius: 15px;
}

.offer_overlay p {
    position: absolute;
    top: 40%;
    width: 100%;
    height: 100%;
    font-weight: bold;
}

.daily-wrapper {
    padding: 16px;
    direction: ltr;
}

.day-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.daily-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.daily-scroll::-webkit-scrollbar {
    display: none;
}

.day-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.day {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.day.claimed {
    background: #0077FF;
    color: #fff;
}

.day.available {
    background: #0077FF;
    box-shadow: 0 0 0 2px #38bdf8 inset;
}

.day.locked {
    background: #070A42;
    border: 2px solid #0077FF;
    color: #0077FF;
}

.gift {
    font-size: 26px;
}

.day-number {
    margin-top: 6px;
    font-size: 12px;
    color: #94a3b8;
}

/* دکمه */
.claim-btn, .join-channel-btn {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(#FF8FCD, #E4007E);
    box-shadow: 0 0 10px 2px rgba(230, 0, 126, 0.7);
    color: white;
    direction: rtl;
}

.join-channel-btn {
    display: block;
    text-align: center;
    height: unset;
    padding: 24px 0;
    font-size: 20px;
}

.claim-btn:disabled {
    background: #1e293b;
    color: #64748b;
}

.join-channel h2 {
    font-size: 22px;
    font-weight: bold;
}

.join-channel p {
    font-size: 16px;
    margin-top: 15px;
}

.join-channel img {
    margin: 50px 0;
}

.invite-card {
    background: #070B52;
    border: 1px solid #376BF0;
    border-radius: 18px;
    padding: 8px 14px;
    color: #eef0ff;
    font-family: inherit;
    margin-bottom: 15px;
}

/* header */
.invite-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.invite-title {
    font-size: 18px;
    font-weight: 700;
}

.invite-back {
    background: none;
    border: none;
    padding: 4px;
}

/* link section */
.invite-link {
    display: flex;
    align-items: center;
    margin-top: 12px;
}

.invite-link {
    height: 32px;
    background: #222a57;
    border: 1px solid #1d4cff;
    border-radius: 999px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    font-size: 9px;
    color: #2f66ff;
    direction: ltr;
    position: relative;
}

.invite-copy {
    width: 56px;
    height: 46px;
    margin-left: 8px;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    border-left: 1px solid;
    height: -webkit-fill-available;
}

/* reward */
.invite-reward {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.reward-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.reward-icon.coin {
    background: radial-gradient(circle at 30% 30%, #ffd46e, #ffb300);
}

.reward-icon.xp {
    background: radial-gradient(circle at 30% 30%, #ff4b9a, #c40063);
}