body {
    font-family: 'PeydaWebVF', serif;
    font-feature-settings: 'ss02';
    padding: 65px 0 0 0;
    background-color: var(--color-bg-soft);
    overflow: hidden;
    height: 100vh;
    box-sizing: border-box;
    max-width: 1500px;
    margin: 0 auto;
    user-select: none;
    direction: rtl;
    overscroll-behavior: none; /* کمک به حذف رفتار bounce (در مرورگرهای پشتیبان) */
    -webkit-overflow-scrolling: auto;
}

.top-nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 900;
    padding: 10px;
    background-color: var(--color-bg);
    box-sizing: border-box;
    border-bottom: 1px solid var(--color-border);
}

.top-nav-left, .top-nav-center, .top-nav-right {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.top-nav-center {
    margin-left: -60px;
}

.logo-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.main-logo {
    width: 32px;
    height: 32px;
    user-select: none;
    pointer-events: none;
}
.main-name {
    height: 30px;
    width: 80px;
    user-select: none;
    pointer-events: none;
}

.top-nav-center {
    gap: 3px;
}

.top-nav-center a {
    text-decoration: none;
    padding: 8px 16px;
    cursor: pointer;
    pointer-events: auto;
    border-radius: 6px;
    color: var(--color-text) !important;
    font-size: clamp(12px, 1.2vw, 15px);
    font-weight: 550;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.top-nav-center a:hover {
    background-color: var(--color-active-btn);
}
.top-nav-center a.active {
    background-color: var(--color-active-btn);
    color: var(--color-primary-hover) !important;
}

.sidenav-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
    padding: 3px;
    border-radius: 5px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}
.sidenav-btn:hover {
    background-color: var(--color-active-btn);
}
.sidenav-btn.active {
    background-color: var(--color-active-btn);
}


.signin-btn {
    display: flex;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    cursor: pointer;
    pointer-events: auto;
    border-radius: 6px;
    color: #ffffff !important;
    font-size: clamp(12px, 1.2vw, 15px);
    font-weight: 500;
    background-color: var(--color-primary);
    transition: background-color 0.3s ease;
}
.signin-btn:hover {
    background-color: var(--color-primary-hover)
}

.support-btn {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    padding: 9px;
    border-radius: 6px;
    margin-left: 10px;
    background-color: transparent;
    position: relative;
    transition: background-color 0.3s ease;
}
.support-btn:hover {
    background-color: var(--color-active-btn);
}
.support-btn.active {
    background-color: var(--color-active-btn);
}
.support-btn img {
    width: 22px;
    height: 22px;
    user-select: none;
    pointer-events: none;
}

.profile-dropdown-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    padding: 11px;
    border-radius: 6px;
    cursor: pointer;
    background-color: transparent;
    position: relative;
    transition: background-color 0.3s ease;
}
.profile-dropdown-btn.active {
    background-color: var(--color-active-btn);
}
.profile-img {
    width: 20px;
    height: 20px;
    user-select: none;
    pointer-events: none;
}
.arrow-down {
    width: 13px;
    height: 13px;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
    user-select: none;
    pointer-events: none;
}

.profile-dropdown {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: calc(100% + 10px);
    right: calc(50% - 65px);
    opacity: 0;
    padding: 8px;
    pointer-events: none;
    border-radius: 8px;
    background: #ffffff;
    width: 120px;
    box-shadow: 0 0 8px rgba(10, 10, 10, 0.15);
    transition: opacity 0.3s ease;
}
.profile-dropdown.show {
    opacity: 1;
    pointer-events: auto;
}

.profile-dropdown-item {
    text-decoration: none;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 8px;
    border-radius: 8px;
    width: 100%;
    color: var(--color-text);
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.profile-dropdown-item img {
    width: 18px;
    height: 18px;
    margin-left: 6px;
    pointer-events: none;
    user-select: none;
}
.profile-dropdown-item p {
    margin: 0;
    font-size: clamp(12px, 1.2vw, 15px);
    font-weight: 500;
    pointer-events: none;
    user-select: none;
}
.profile-dropdown-item:hover {
    background-color: var(--color-active-btn);
}
.profile-dropdown-item.active {
    background-color: var(--color-active-btn);
    color: var(--color-primary-hover);
}

.bottom-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.bottom-nav-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding:  8px 3px 6px 3px;
    background-color: transparent;
    color: var(--color-text);
    cursor: pointer;
    width: 20%;
    gap: 7px;
    transition: color 0.3s ease, background-color 0.3s ease;
}
.bottom-nav-item.active {
    color: var(--color-primary);
}
@keyframes transformIcon {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.25);
    }
    100% {
        transform: scale(1);
    }
}

.bottom-nav-item img {
    margin-top: 5px;
    transition: transform 0.3s;
}

.bottom-nav-item.animate img {
    animation: transformIcon 0.3s ease;
}

.bottom-nav-item p {
    margin: 0 0 15px 0;
    font-size: 12px;
    user-select: none;
    text-align: center;
    font-weight: 500;
    line-height: 18px;
    font-style: normal;
}
.bottom-nav-item img {
    width: 20px;
    height: 20px;
}

.menu-item-img.active {
    display: flex;
}
.menu-item-img.inactive {
    display: none;
}





.sidebar-nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    direction: rtl;
    position: fixed;
    right: -88%;
    top: 0px;
    width: 85%;
    height: 100%;
    background-color: var(--color-bg);
    overflow: hidden;
    border-radius: 0 0 7px 0;
    /*box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.4);*/
    z-index: 1002;
    transition: right 0.4s ease;
}

*, ::after, ::before {
    box-sizing: unset; !important;
}

.sidebar-nav.show {
    right: 0%;
}

.sidebar-nav-logo {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 16px;
    width: calc(100% - 32px);
}

#close-sidenav {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
}

#logo-sidenav {
    width: 128px;
    height: 27px;
    pointer-events: none;
    user-select: none;
}

.sidebar-nav-menu-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    width: 100%;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-item {
    text-decoration: none;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    border-bottom: 1px solid var(--color-border);
    width: calc(100% - 30px);
    color: var(--color-text);
    transition: background-color 0.3s ease, color 0.3s ease
}

.sidebar-item:first-child {
    border-top: var(--color-border);
}

.sidebar-item.active {
    background-color: var(--color-active-btn);
    color: var(--color-primary);
}

.sidebar-item img {
    margin-left: 6px;
    width: 20px;
    height: 20px;
    user-select: none;
    transition: transform 0.3s;
}
.sidebar-item p {
    font-size: 14px;
    font-weight: 500;
    user-select: none;
    margin: 0;
    font-style: normal;
    text-align: right
}

.sidebar-nav-footer {
    align-self: flex-end;
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    min-height: max-content;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
}

.sidebar-nav-footer span {
    color: var(--color-secondary);
    font-size: clamp(11px, 1.4vw, 14px);
    font-weight: 700;
    word-wrap: break-word
}




.app-modal, .site-modal, .sidebar-app-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    opacity: 0;
    background-color: rgba(10, 10, 10, 0.2);
    z-index: -1000;
    transition: opacity 0.3s ease;
}
.app-modal.show, .site-modal.show, .sidebar-app-modal.show {
    opacity: 1;
    z-index: 1001;
}


.dialog-box-panel {
    direction: rtl;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: 10px;
    width: 90%;
    max-width: 300px;
    position: fixed;
    right: -100%;
    top: 70px;
    z-index: 99999;
    background-color: #FFFFFF;
    box-shadow: 0 0 8px rgba(10, 10, 10, 0.2);
    box-sizing: border-box;
    transition: right 0.3s ease;
}
.dialog-box-panel.show {
    right: 1%;
}

.message-dialog-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.message-dialog-img {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 7px;
}
.message-dialog-img img {
    width: 50px;
    height: 50px;
}

.message-dialog-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
}

.message-dialog-title {
    margin: 0;
    font-size: clamp(15px, 1.4vw, 16px);
    font-weight: 700;
    color: #494949;
}

.message-dialog-explain {
    margin: 0;
    font-size: clamp(12px, 1.4vw, 13px);
    font-weight: 550;
    color: #656565;
}

.close-container-dialog {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
}
.close-container-dialog img {
    width: 16px;
    height: 16px;
}

.shimmer::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
    100% { left: 100%; }
}



@media (min-width: 992px) {
    .sidenav-btn {
        opacity: 0;
        pointer-events: none;
    }
    .bottom-nav {
        display: none;
    }
    .sidebar-nav {
        display: none;
    }
    .app-modal {
        display: none;
    }
    .sidebar-app-modal {
        display: none;
    }
    body {
        padding: 65px 0 0 0 !important;
    }
    .support-btn {
        display: flex;
    }
}

/* Mobile */
@media (max-width: 991.999px) {
    .sidenav-btn {
        opacity: 1;
        pointer-events: auto;
    }
    .top-nav-center {
        display: none;
    }
    .signin-btn {
        display: none;
    }
    .profile-dropdown-btn {
        display: none;
    }
    .site-modal {
        display: none;
    }
    body {
        padding: 53px 0 80px 0;
    }
    .support-btn {
        display: none;
    }
}





:root {
    --color-primary: #d4af37;
    --color-primary-hover: #c2a033;

    --color-secondary: #1d3557;
    --color-success: #198754;
    --color-danger: #dc3545;
    --color-warning: #ffc107;
    --color-info: #0dcaf0;

    --color-bg: #ffffff;
    --color-bg-soft: #f8f9fa;
    --color-text: #4b4b4b;
    --color-text-muted: #6c757d;
    --color-border: #dedede;
    --color-active-btn: #f2f2f2;
}

[data-theme="dark"] {
    --color-bg: #121212;
    --color-bg-soft: #1e1e1e;
    --color-text: #e9ecef;
    --color-text-muted: #adb5bd;
    --color-border: #2c2c2c;
}


@font-face {
    font-family: 'PeydaWebVF';
    src: url('../fonts/PeydaVF/Variable Webfont/PeydaWebVF.woff2') format('woff2-variations'),
         url('../fonts/PeydaVF/Variable Webfont/PeydaWebVF.woff') format('woff-variations');
    font-weight: 100 950;
    font-style: normal;
    font-display: swap;
}