/*
Theme Name: Fast News Lite (Desktop List View)
Author: Custom AI
Version: 1.16
*/

:root {
    --primary-color: #dcb86f;
    --header-text: #222222;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #222;
    --meta-color: #666;
    --font-main: 'VazirMatn', sans-serif;
    --space-md: 20px;
    --radius-md: 12px;
    --shadow-md: 0 2px 8px rgba(0,0,0,0.05);
}

/* ========================================================= */
/* لود فونت پرطرفدار وزیرمتن */
/* ========================================================= */

@font-face {
    font-family: 'VazirMatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'VazirMatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'VazirMatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'VazirMatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'VazirMatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'VazirMatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'VazirMatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'VazirMatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'VazirMatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

/* ========================================================= */
/* لود فونت آیکون اختصاصی */
/* ========================================================= */

@font-face {
  font-family: 'daythemes-icon';
  src:  url('assets/fonts/daythemes-icon.eot?xzbap9');
  src:  url('assets/fonts/daythemes-icon.eot?xzbap9#iefix') format('embedded-opentype'),
    url('assets/fonts/daythemes-icon.ttf?xzbap9') format('truetype'),
    url('assets/fonts/daythemes-icon.woff?xzbap9') format('woff'),
    url('assets/fonts/daythemes-icon.svg?xzbap9#daythemes-icon') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

[class^="day-"], [class*=" day-"] {
  font-family: 'daythemes-icon' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================================= */
/* استایل‌های پایه و ریست عمومی */
/* ========================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    padding-top: 70px;
    direction: rtl;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
a:hover { opacity: 0.7; }

.container {
    max-width: 80rem;
    margin-right: auto;
    margin-left: auto;
    padding-left: 7px;
    padding-right: 7px;
}

@media screen and (max-width:1360px){ .container{ width:90%; } }
@media screen and (max-width:1280px){ .container{ width:95%; } }
@media screen and (max-width:640px){ .container{ width:100%; padding-left: 0px; padding-right: 0px; } }

/* ========================================================= */
/* هدر دسکتاپ و المان‌ها */
/* ========================================================= */

header {
    background-color: #ffffff;
    color: var(--header-text);
    padding: 5px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.brand { flex-grow: 1; display: flex; justify-content: center; }
.brand img { height: 65px; width: auto; display: block; }
.menu-icon { font-size: 1.8rem; cursor: pointer; padding: 5px; }

/* آیکون‌های اجتماعی هدر */
.header-socials { display: flex; gap: 10px; align-items: center; }
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    transition: color 0.3s ease;
    text-decoration: none;
    line-height: 1;
}
.social-icon:hover { color: var(--primary-color, #dcb86f); }

/* آواتار کاربر و آیکون ورود سریع */
.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
}
.user-avatar img {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
    transition: transform 0.2s ease;
}
.user-avatar:hover img {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.user-login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    cursor: pointer;
}
.user-login-icon i {
    font-size: 24px;
    color: #333;
    transition: color 0.2s ease;
}
.user-login-icon:hover i {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .user-avatar img { width: 28px !important; height: 28px !important; }
    .user-login-icon i { font-size: 22px; }
}

/* ========================================================= */
/* منوی کشویی سمت راست (موبایل و منوی فرعی دسکتاپ) */
/* ========================================================= */

.sidebar-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1001; display: none; opacity: 0; transition: opacity 0.3s;
}
.sidebar-overlay.active { display: block; opacity: 1; }

.mobile-sidebar {
    position: fixed; top: 0; right: -300px; width: 280px; height: 100%;
    background: #fff; z-index: 1002; transition: right 0.3s ease-in-out;
    padding: 20px; box-shadow: -2px 0 10px rgba(0,0,0,0.1); overflow-y: auto;
}
.mobile-sidebar.active { right: 0; }

.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.sidebar-logo img { width: 120px; height: auto; }
.close-btn { font-size: 2rem; cursor: pointer; color: #888; }

.sidebar-search { margin-bottom: 20px; position: relative; }
.sidebar-search input { width: 100%; padding: 10px 15px; border: 1px solid #ddd; border-radius: 25px; background: #f9f9f9; font-family: var(--font-main); }
.sidebar-search button { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; }

.mobile-nav ul { list-style: none; }
.mobile-nav ul li { border-bottom: 1px solid #f0f0f0; }
.mobile-nav ul li a { display: block; padding: 12px 5px; font-weight: 500; color: #333; }
.mobile-nav ul li a:hover { color: var(--primary-color); padding-right: 10px; }

.sidebar-socials { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; text-align: center; }
.socials-title { font-size: 0.95rem; color: #444; margin-bottom: 15px; font-weight: 700; }
.socials-grid { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.sb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    transition: transform 0.2s, opacity 0.2s;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.sb-icon:hover { transform: translateY(-3px); opacity: 0.9; }
.sb-icon i { font-size: 24px; color: #fff; }

.sb-icon.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.sb-icon.telegram { background-color: #229ED9; }
.sb-icon.eitaa { background-color: #E46F2A; }
.sb-icon.bale { background-color: #40C36C; }

/* ========================================================= */
/* استایل کارت‌های اخبار */
/* ========================================================= */

.post-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: var(--shadow-md);
    border: 1px solid #eee;
    transition: transform 0.2s;
}
.post-cat { background: var(--primary-color); color: #222; padding: 2px 8px; font-size: 0.7rem; border-radius: 4px; display: inline-block; margin-bottom: 8px; font-weight: bold; }
.post-meta { font-size: 0.75rem; color: var(--meta-color); margin-top: auto; }

/* ========================================================= */
/* اسلایدر صفحه اصلی (اسلایدر ۳تایی بالای صفحه) */
/* ========================================================= */

.featured-slider-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 10px;
    margin-bottom: 25px;
    scrollbar-width: none;
}
.featured-slider-wrapper::-webkit-scrollbar { display: none; }

.slider-item {
    flex: 0 0 85%;
    scroll-snap-align: center;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    position: relative;
}
.slider-item img { width: 100%; height: 180px; object-fit: cover; }
.slider-content { padding: 15px; }
.slider-title { font-size: 1rem; font-weight: 800; margin-bottom: 5px; line-height: 1.5; }

.slider-main-wrapper { position: relative; width: 100%; margin-bottom: 25px; }
.slider-dots { position: absolute; bottom: 30px; left: 40px; z-index: 20; display: flex; gap: 8px; pointer-events: auto; }
.dot { width: 10px; height: 10px; background-color: #bbb; border-radius: 50%; cursor: pointer; transition: all 0.3s ease; }
.dot:hover { background-color: #888; transform: scale(1.2); }
.dot.active { background-color: var(--primary-color); width: 25px; border-radius: 10px; }

@media (max-width: 991px) { .slider-dots { display: none; } }

/* ========================================================= */
/* لیست پست‌های استاندارد میانی */
/* ========================================================= */

.standard-post { display: flex; padding: 12px; gap: 15px; align-items: flex-start; }
.standard-post img { width: 100px; height: 100px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.standard-content { flex-grow: 1; display: flex; flex-direction: column; justify-content: flex-start; }
.standard-title { font-size: 0.95rem; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }

/* بنر تبلیغاتی بین اخبار */
.inline-ad-banner { margin: 15px 0; text-align: center; width: 100%; }
.inline-ad-banner img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 0 auto; }
.ad-desktop { display: none !important; }
.ad-mobile { display: block !important; }

@media (min-width: 768px) {
    .ad-desktop { display: block !important; }
    .ad-mobile { display: none !important; }
}

/* ========================================================= */
/* ریسپانسیو و بهینه‌سازی دسکتاپ (از رزولوشن ۹۹۲ به بالا) */
/* ========================================================= */

@media (min-width: 992px) {
    .container { max-width: 90%; }
    .featured-slider-wrapper { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; padding-bottom: 15px; scrollbar-width: none; -ms-overflow-style: none; cursor: grab; user-select: none; }
    .featured-slider-wrapper.active { cursor: grabbing; scroll-behavior: auto; }
    
    .slider-item { flex: 0 0 100%; scroll-snap-align: center; height: 220px; display: flex; flex-direction: row; align-items: center; -webkit-user-drag: none; }
    .slider-item a { width: 50%; height: 100%; flex-shrink: 0; display: block; pointer-events: none; padding: 14px; }
    .slider-item img { object-fit: cover; pointer-events: none; border-radius: 8px; }
    
    .slider-content { width: 50%; padding: 20px; text-align: right; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; height: 100%; }
    .post-cat { width: auto; margin-bottom: 15px; font-size: 0.85rem; }
    .slider-title { font-size: 1.8rem; line-height: 1.4; margin-bottom: 15px; }
    .slider-title a { width: 100%; pointer-events: auto; font-size: 20px; padding: 0px; }
    .post-meta { font-size: 0.9rem; }

    .standard-post { padding: 10px; align-items: center; }
    .standard-post img { width: 200px; height: 115px; }
    .standard-title { font-size: 16px; }
    .back-arrow-icon { margin-left: 10px; }
}

/* ========================================================= */
/* جزئیات صفحات داخلی (سینگل) */
/* ========================================================= */

.back-arrow-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; cursor: pointer; }
.back-arrow-icon i { font-size: 24px; color: var(--header-text); transition: color 0.3s; }
.back-arrow-icon:hover i { color: var(--primary-color); }

.single-header { padding: 0 0 15px 0; }
.single-title { font-size: 1.5rem; font-weight: 900; line-height: 1.4; margin-bottom: 15px; }
.single-img { width: 100%; height: auto; border-radius: 12px; margin-bottom: 20px; display: block; }
.single-body { line-height: 2; font-size: 1rem; text-align: justify; color: #333; }
.single-body p { margin-bottom: 20px; }
.single-body img { max-width: 100%; height: auto; border-radius: 8px; }

img.alignright { float:right; margin:0 0 1em 1em; }
img.alignleft { float:left; margin:0 1em 1em 0; }
img.aligncenter { display:block; margin-left:auto; margin-right:auto; }
.alignright { float:right; }
.alignleft { float:left; }
.aligncenter { display:block; margin-left:auto; margin-right:auto; }

#loading { text-align: center; padding: 20px; display: none; color: var(--meta-color); }

/* دکمه علاقه‌مندی */
.favorite-btn { background: none; border: none; font-size: 1.8rem; cursor: pointer; transition: transform 0.2s; line-height: 1; padding: 5px; }
.favorite-btn:hover { transform: scale(1.1); }
.favorite-btn.favorited { color: #e74c3c; }
.favorite-btn.loading { opacity: 0.5; cursor: wait; }
.favorite-msg { font-size: 0.75rem; background: #333; color: #fff; padding: 2px 8px; border-radius: 20px; margin-right: 10px; }

/* اشتراک‌گذاری */
.share-buttons { display: flex; gap: 8px; flex-wrap: nowrap; }
.share-btn { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 50%; color: #fff !important; transition: transform 0.2s, opacity 0.2s; padding: 0; }
.share-btn:hover { opacity: 0.9; transform: translateY(-2px); color: #fff !important; }
.share-btn i { font-size: 20px; color: #fff; }

.share-btn.telegram { background-color: #2ca5e0; }
.share-btn.whatsapp { background-color: #25D366; }
.share-btn.facebook { background-color: #1877F2; }
.share-btn.x-twitter { background-color: #000000; }

/* لینک کوتاه */
.post-footer-tools { margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; }
.short-link-box { display: flex; align-items: center; gap: 10px; background: #f8f9fa; border: 1px dashed #ccc; padding: 10px 15px; border-radius: 8px; margin-bottom: 20px; position: relative; flex-wrap: wrap; }
.short-link-label { font-size: 0.9rem; font-weight: 700; color: #444; }
.short-link-wrapper { display: flex; align-items: center; background: #fff; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; flex-grow: 1; max-width: 350px; }
.short-link-wrapper input { border: none; background: transparent; padding: 8px 10px; width: 100%; font-family: monospace; font-size: 1rem; color: #555; direction: ltr; }
.copy-btn { border: none; background: #f0f0f0; color: #333; padding: 8px 12px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; border-right: 1px solid #ddd; }
.copy-btn:hover { background: var(--primary-color); color: #fff; }
.copy-btn i { font-size: 20px; }
.copy-message { font-size: 0.8rem; color: #fff; background: #222; padding: 4px 10px; border-radius: 4px; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.copy-message.show { opacity: 1; }

@media (max-width: 480px) {
    .short-link-box { flex-direction: column; align-items: stretch; }
    .short-link-wrapper { max-width: 100%; }
    .copy-message { text-align: center; }
}

/* ========================================================= */
/* دیدگاه‌ها و سیستم کامنت‌های حرفه‌ای */
/* ========================================================= */

.comments-area { background: #fff; padding: 25px; margin-bottom: 30px; border-radius: 12px; border: 1px solid #eee; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.comments-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-color); display: inline-block; }
.comment-list { list-style: none; margin-bottom: 30px; }
.comment-list li.comment { margin-bottom: 20px; border-bottom: 1px solid #f0f0f0; padding-bottom: 20px; }
.comment-list li.comment:last-child { border-bottom: none; }
.comment-meta { display: flex; align-items: center; margin-bottom: 10px; }
.comment-author .avatar { width: 40px; height: 40px; border-radius: 50%; margin-left: 10px; border: 2px solid #eee; }
.fn { font-weight: 700; font-style: normal; color: #333; }
.comment-metadata { font-size: 0.8rem; color: #888; margin-right: auto; }
.comment-content p { font-size: 0.95rem; line-height: 1.8; color: #444; margin-bottom: 10px; }
.reply a { font-size: 0.8rem; color: var(--primary-color); border: 1px solid var(--primary-color); padding: 3px 10px; border-radius: 20px; display: inline-block; }
.reply a:hover { background: var(--primary-color); color: #fff; }
.comment-list .children { list-style: none; padding-right: 40px; margin-top: 20px; border-right: 2px solid #f0f0f0; }
.comment-respond { margin-top: 30px; background: #f9f9f9; padding: 20px; border-radius: 10px; }
.comment-reply-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; display: block; }
.comment-form p { margin-bottom: 15px; }
.comment-form label { display: block; font-size: 0.9rem; margin-bottom: 5px; color: #555; }
.comment-form input, .comment-form textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-family: var(--font-main); background: #fff; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--primary-color); }

/* ساختار کامنت حرفه‌ای ویژه */
.pro-comment-info { background: var(--card-bg, #ffffff); border-right: 4px solid var(--primary-color, #dcb86f); border-radius: var(--radius-md, 12px); padding: 20px 25px; margin: 25px 0 20px; box-shadow: var(--shadow-md, 0 2px 8px rgba(0,0,0,0.05)); font-family: var(--font-main, 'VazirMatn', sans-serif); transition: all 0.3s ease; }
.pro-comment-info:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); transform: translateY(-2px); }
.credit-status { background: #f8f9fa; border-radius: 10px; padding: 12px 18px; margin-bottom: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.95rem; border: 1px solid #eee; }
.credit-status strong { color: var(--primary-color, #dcb86f); font-size: 1.1rem; margin: 0 3px; }
.comment-quota { background: #f8f9fa; border-radius: 10px; padding: 12px 18px; margin-bottom: 15px; line-height: 1.8; font-size: 0.95rem; border: 1px solid #eee; }
.comment-quota strong { color: #2c7da0; font-weight: 800; background: #e1f0fa; padding: 2px 8px; border-radius: 30px; display: inline-block; margin: 0 2px; }
.credit-warning { background: #fff3e0; border-right: 4px solid #ff9800; border-radius: 10px; padding: 12px 18px; color: #b85c00; font-weight: 500; }
.credit-warning a { color: #e65100; text-decoration: underline; font-weight: bold; }
.credit-success { background: #e8f5e9; border-right: 4px solid #4caf50; border-radius: 10px; padding: 12px 18px; color: #1e5a1e; font-weight: 500; }

@media (max-width: 768px) {
    .pro-comment-info { padding: 15px; }
    .credit-status { flex-direction: column; align-items: flex-start; }
    .comment-quota br { display: block; }
    .credit-status strong { font-size: 1rem; }
}

.credit-status strong, .comment-quota strong { font-family: monospace; letter-spacing: 0.5px; }

/* باکس ویژه تشویق به ورود کاربران مهمان برای ثبت کامنت */
.login-to-comment-box { background: linear-gradient(135deg, #fff 0%, #fef9f0 100%); border: 2px dashed var(--primary-color, #dcb86f); border-radius: 24px; padding: 30px 25px; text-align: center; margin: 30px 0; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); transition: all 0.3s ease; position: relative; overflow: hidden; }
.login-to-comment-box:hover { transform: translateY(-4px); box-shadow: 0 20px 30px -12px rgba(0,0,0,0.15); border-color: var(--primary-color); }
.ltc-icon { font-size: 64px; color: var(--primary-color); background: #fff; width: 90px; height: 90px; line-height: 90px; text-align: center; border-radius: 50%; margin: 0 auto 20px; box-shadow: 0 5px 15px rgba(220,184,111,0.2); border: 1px solid rgba(220,184,111,0.3); }
.ltc-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; color: #222; }
.ltc-desc { font-size: 0.95rem; color: #555; margin-bottom: 20px; line-height: 1.7; max-width: 500px; margin-left: auto; margin-right: auto; }
.ltc-benefits { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; list-style: none; margin-bottom: 30px; padding: 0; }
.ltc-benefits li { background: #fff; padding: 8px 18px; border-radius: 40px; font-size: 0.85rem; font-weight: 600; color: #444; box-shadow: 0 2px 6px rgba(0,0,0,0.05); border: 1px solid #eee; }
.ltc-benefits li i { margin-left: 6px; color: var(--primary-color); }
.ltc-actions { margin-top: 5px; }
.ltc-login-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-color, #dcb86f); color: #222; padding: 12px 28px; border-radius: 50px; font-weight: 800; font-size: 1rem; transition: all 0.2s; text-decoration: none; box-shadow: 0 3px 8px rgba(0,0,0,0.1); }
.ltc-login-btn:hover { background: #c9a75b; transform: scale(1.02); color: #000; box-shadow: 0 6px 14px rgba(0,0,0,0.12); }
.ltc-login-btn i { transition: transform 0.2s; }
.ltc-login-btn:hover i { transform: translateX(4px); }

@media (max-width: 576px) {
    .login-to-comment-box { padding: 20px 15px; }
    .ltc-icon { width: 70px; height: 70px; line-height: 70px; font-size: 48px; }
    .ltc-title { font-size: 1.2rem; }
    .ltc-benefits li { font-size: 0.75rem; padding: 5px 12px; }
    .ltc-login-btn { padding: 8px 20px; font-size: 0.85rem; }
}

.submit-btn, #submit { background: var(--header-text); color: #fff; border: none; padding: 10px 25px; font-size: 1rem; font-family: var(--font-main); border-radius: 8px; cursor: pointer; transition: 0.3s; }
.submit-btn:hover, #submit:hover { background: var(--primary-color); transform: translateY(-2px); }

@media (max-width: 480px) { .comment-list .children { padding-right: 15px; } }

/* ========================================================= */
/* منوی کاربر دسکتاپ (دراپ‌داون هدر) */
/* ========================================================= */

.user-dropdown { position: relative; display: inline-block; }
.user-dropdown-trigger { cursor: pointer; display: flex; align-items: center; }
.user-dropdown-trigger img { width: 32px !important; height: 32px !important; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-color); transition: transform 0.2s; }
.user-dropdown-trigger:hover img { transform: scale(1.05); }

/* ساختار آیکون آواتار پیش‌فرض */
.default-avatar-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: linear-gradient(135deg, #dcb86f 0%, #c2a15b 100%); border-radius: 50%; color: #fff; font-size: 18px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.default-avatar-icon:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

.default-avatar-icon.large { width: 80px; height: 80px; font-size: 48px; background: linear-gradient(145deg, #e0c080, #dcb86f); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.mobile-user-avatar .default-avatar-icon { width: 48px; height: 48px; font-size: 28px; }

@media (max-width: 768px) { .default-avatar-icon.large { width: 60px; height: 60px; font-size: 36px; } }

.user-dropdown-menu { position: absolute; top: 45px; left: 0; background: #fff; min-width: 200px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.15); padding: 10px 0; z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.2s ease; border: 1px solid #eee; }
.user-dropdown:hover .user-dropdown-menu, .user-dropdown-trigger:focus + .user-dropdown-menu, .user-dropdown-menu:hover { opacity: 1; visibility: visible; }
.user-info-header { padding: 10px 15px; border-bottom: 1px solid #f0f0f0; margin-bottom: 5px; }
.user-info-header strong { display: block; font-size: 0.9rem; margin-bottom: 5px; color: #222; }
.user-credit { font-size: 0.75rem; color: var(--primary-color); background: #fef5e6; padding: 2px 8px; border-radius: 20px; display: inline-block; }
.dropdown-link { display: block; padding: 10px 15px; font-size: 0.85rem; color: #444; text-decoration: none; transition: all 0.2s; }
.dropdown-link:hover { background: #f9f9f9; color: var(--primary-color); padding-right: 20px; }

/* ========================================================= */
/* بخش هدر موبایل و سایدبار موبایل */
/* ========================================================= */

.mobile-user-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
.mobile-user-avatar { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.mobile-user-avatar img { width: 48px !important; height: 48px !important; border-radius: 50%; border: 2px solid var(--primary-color); }
.mobile-user-info { display: flex; flex-direction: column; }
.mobile-user-name { font-weight: 700; font-size: 1rem; color: #222; }
.mobile-user-credit { font-size: 0.8rem; color: var(--primary-color); background: #fef5e6; padding: 2px 8px; border-radius: 20px; display: inline-block; margin-top: 5px; width: fit-content; }
.mobile-user-links { display: flex; flex-direction: column; gap: 10px; }
.mobile-user-links a { display: block; padding: 10px 12px; background: #f8f8f8; border-radius: 10px; color: #333; font-weight: 500; transition: all 0.2s; }
.mobile-user-links a:hover { background: var(--primary-color); color: #fff; }
.mobile-sidebar { padding-bottom: 30px; }

/* ========================================================= */
/* صفحه خطای ۴۰۴ */
/* ========================================================= */

.error-404-area { text-align: center; padding: 60px 20px; max-width: 700px; margin: 0 auto; }
.error-code { font-size: 8rem; font-weight: 900; color: var(--primary-color); line-height: 1; margin-bottom: 10px; text-shadow: 4px 4px 0px #eee; }
.error-title { font-size: 1.8rem; font-weight: 800; color: var(--header-text); margin-bottom: 15px; }
.error-desc { color: #666; font-size: 1rem; margin-bottom: 30px; line-height: 1.8; }

.error-search-box { position: relative; max-width: 400px; margin: 0 auto 30px auto; }
.error-search-box input { width: 100%; padding: 12px 15px; border: 2px solid #eee; border-radius: 50px; background: #f9f9f9; font-family: var(--font-main); }
.error-search-box button { position: absolute; left: 5px; top: 50%; transform: translateY(-50%); background: var(--primary-color); border: none; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; }
.back-home-btn { display: inline-block; background: var(--header-text); color: #fff; padding: 10px 25px; border-radius: 50px; font-weight: bold; transition: 0.3s; }
.back-home-btn:hover { background: var(--primary-color); color: #fff; }

@media (max-width: 768px) { .error-code { font-size: 5rem; } }

/* ========================================================= */
/* نوار ناوبری ثابت پایینی (در حالت موبایل) */
/* ========================================================= */

.mobile-bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background-color: #ffffff; display: flex; justify-content: space-around; align-items: center; height: 60px; box-shadow: 0 -2px 10px rgba(0,0,0,0.08); z-index: 9999; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #eee; }
.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: #777; font-size: 0.75rem; width: 25%; height: 100%; transition: color 0.3s ease; position: relative; }
.nav-icon i { font-size: 24px; margin-bottom: 4px; }
.nav-item.active, .nav-item:hover { color: var(--primary-color); }
.nav-item.active::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 40%; height: 3px; background-color: var(--primary-color); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; }
.mobile-spacer { display: none; }

@media (min-width: 769px) { .mobile-bottom-nav { display: none; } .mobile-spacer { display: none !important; } }
@media (max-width: 768px) { .mobile-bottom-nav { display: flex; } .mobile-spacer { display: block !important; height: 70px; } }

/* ========================================================= */
/* پاپ آپ نمایش شبکه‌های اجتماعی */
/* ========================================================= */

.social-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 10000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; backdrop-filter: blur(2px); }
.social-modal-overlay.show { opacity: 1; visibility: visible; }
.social-modal-box { background: #fff; width: 85%; max-width: 320px; border-radius: 15px; padding: 20px; transform: scale(0.8); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 10px 30px rgba(0,0,0,0.2); text-align: center; }
.social-modal-overlay.show .social-modal-box { transform: scale(1); }
.social-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.social-modal-header h4 { margin: 0; font-size: 1rem; font-weight: 700; color: #333; }
.close-modal-btn { font-size: 1.8rem; cursor: pointer; color: #888; line-height: 1; padding: 0 5px; }
.modal-grid { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

/* ========================================================= */
/* چیدمان کلی صفحه (ستون‌بندی سایدبارها) */
/* ========================================================= */

.main-layout { display: flex; flex-direction: column; gap: 20px; }
.sidebar-box { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 15px; margin-bottom: 20px; box-shadow: var(--shadow-md); }
.widget-title { font-size: 1rem; font-weight: 800; color: var(--header-text); margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid var(--primary-color); }
.small-post-list { display: flex; flex-direction: column; gap: 15px; }
.small-post { display: flex; align-items: flex-start; gap: 10px; }
.small-post img { width: 65px; height: 65px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.small-post h3 { font-size: 0.85rem; font-weight: 700; margin: 0; }
.small-post h3 a:hover { color: var(--primary-color); }
.ad-banner { display: block; margin-bottom: var(--space-md); border-radius: var(--radius-md); overflow: hidden; transition: all 0.3s ease; }
.ad-banner:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ad-banner img { width: 100%; transition: all 0.3s ease; height: auto; }

/* مدیریت و نمایش ۳ ستونه سایدبار دسکتاپ */
@media (max-width: 991px) {
    .desktop-sidebar { display: none !important; }
    .main-layout { display: block; }
    #content-container { width: 100%; }
}

@media (min-width: 992px) { 
    .main-layout { display: grid; grid-template-columns: 25% 1fr 25%; gap: 20px; align-items: start; }
    #content-container { width: 100%; min-width: 0; }
    .desktop-sidebar { display: block; }
}

/* ========================================================= */
/* پاپ آپ عضویت بله */
/* ========================================================= */

.tg-popup { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 99999; font-family: var(--font-main, 'VazirMatn', sans-serif); direction: rtl; }
.tg-popup.show { display: flex; }
.tg-popup-box { background: var(--card-bg, #fff); padding: 28px 24px; width: 340px; max-width: 90%; border-radius: 20px; text-align: center; box-shadow: 0 20px 35px rgba(0,0,0,0.2); animation: tgFadeIn 0.3s ease; }
.tg-popup-icon { font-size: 48px; color: #40C36C; margin-bottom: 8px; }
.tg-popup-box h3 { font-size: 1.4rem; font-weight: 800; margin: 10px 0 8px; color: var(--header-text, #222); }
.tg-popup-box p { font-size: 0.9rem; color: var(--meta-color, #666); margin-bottom: 24px; line-height: 1.6; }
.tg-popup-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.tg-popup-actions a { background: #40C36C; color: #fff; padding: 10px 24px; border-radius: 40px; text-decoration: none; font-weight: 700; transition: 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.tg-popup-actions a:hover { background: #2a9e52; transform: scale(1.02); }
.tg-popup-actions button { background: #f0f0f0; border: none; padding: 10px 20px; border-radius: 40px; cursor: pointer; font-family: inherit; font-size: 0.85rem; font-weight: 500; transition: 0.2s; color: #444; display: inline-flex; align-items: center; gap: 6px; }
.tg-popup-actions button:hover { background: #e0e0e0; }

@keyframes tgFadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 480px) { .tg-popup-box { padding: 20px; width: 280px; } .tg-popup-box h3 { font-size: 1.2rem; } .tg-popup-icon { font-size: 40px; } }

/* ========================================================= */
/* مپ‌کد های فونت آیکون */
/* ========================================================= */

.day-chart-bar:before { content: "\e900"; }
.day-stats-bars:before { content: "\e901"; }
.day-stats:before { content: "\e901"; }
.day-statistics:before { content: "\e901"; }
.day-chart:before { content: "\e901"; }
.day-angle-double-down-solid:before { content: "\e000"; }
.day-angle-double-left-solid:before { content: "\e001"; }
.day-angle-double-right-solid:before { content: "\e002"; }
.day-angle-double-up-solid:before { content: "\e003"; }
.day-angle-down-solid:before { content: "\e004"; }
.day-angle-left-solid:before { content: "\e005"; }
.day-angle-right-solid:before { content: "\e006"; }
.day-angle-up-solid:before { content: "\e007"; }
.day-arrow-alt-circle-down:before { content: "\e008"; }
.day-arrow-alt-circle-left-solid:before { content: "\e009"; }
.day-arrow-alt-circle-up:before { content: "\e00a"; }
.day-arrow-alt-circle-right:before { content: "\e00b"; }
.day-arrow-circle-down-solid:before { content: "\e00c"; }
.day-arrow-circle-left-solid:before { content: "\e00d"; }
.day-arrow-circle-right-solid:before { content: "\e00e"; }
.day-arrow-circle-up-solid:before { content: "\e00f"; }
.day-arrow-down-solid:before { content: "\e010"; }
.day-arrow-left-solid:before { content: "\e011"; }
.day-arrow-right-solid:before { content: "\e012"; }
.day-arrow-up-solid:before { content: "\e013"; }
.day-caret-down-solid:before { content: "\e014"; }
.day-caret-left-solid:before { content: "\e015"; }
.day-caret-right-solid:before { content: "\e016"; }
.day-caret-up-solid:before { content: "\e017"; }
.day-caret-square-up-solid:before { content: "\e018"; }
.day-caret-square-down-solid:before { content: "\e019"; }
.day-caret-square-left:before { content: "\e01a"; }
.day-chevron-right-solid:before { content: "\e01b"; }
.day-chevron-left-solid:before { content: "\e01c"; }
.day-chevron-down-solid:before { content: "\e01d"; }
.day-chevron-up-solid:before { content: "\e01e"; }
.day-long-arrow-alt-up-solid:before { content: "\e01f"; }
.day-long-arrow-alt-right-solid:before { content: "\e020"; }
.day-long-arrow-alt-left-solid:before { content: "\e021"; }
.day-long-arrow-alt-down-solid:before { content: "\e022"; }
.day-android-arrow-dropdown-circle:before { content: "\e023"; }
.day-android-arrow-dropleft-circle:before { content: "\e024"; }
.day-android-arrow-dropright-circle:before { content: "\e025"; }
.day-android-arrow-dropup-circle:before { content: "\e026"; }
.day-calendar-line:before { content: "\e027"; }
.day-arrow-down-a:before { content: "\e028"; }
.day-arrow-right-a:before { content: "\e029"; }
.day-arrow-up-a:before { content: "\e02a"; }
.day-arrow-left-a:before { content: "\e02b"; }
.day-ios-redo-outline:before { content: "\e02c"; }
.day-ios-undo-outline:before { content: "\e02d"; }
.day-reply:before { content: "\e02e"; }
.day-android-share:before { content: "\e02f"; }
.day-ios-arrow-thin-up:before { content: "\e030"; }
.day-ios-arrow-thin-right:before { content: "\e031"; }
.day-ios-arrow-thin-left:before { content: "\e032"; }
.day-ios-arrow-thin-down:before { content: "\e033"; }
.day-arrow-down-b:before { content: "\e034"; }
.day-arrow-down-c:before { content: "\e035"; }
.day-arrow-right-b:before { content: "\e036"; }
.day-arrow-up-b:before { content: "\e037"; }
.day-caret-square-right:before { content: "\e038"; }
.day-arrow-left-b:before { content: "\e039"; }
.day-arrow-right-c:before { content: "\e03a"; }
.day-arrow-left-c:before { content: "\e03b"; }
.day-chevron-circle-down-solid:before { content: "\e03c"; }
.day-chevron-circle-left-solid:before { content: "\e03d"; }
.day-chevron-circle-right-solid:before { content: "\e03e"; }
.day-chevron-circle-up-solid:before { content: "\e03f"; }
.day-arrow-up-c:before { content: "\e040"; }
.day-chevron-up:before { content: "\e041"; }
.day-chevron-right:before { content: "\e042"; }
.day-chevron-left:before { content: "\e043"; }
.day-arrow-down-line:before { content: "\e044"; }
.day-arrow-left-line:before { content: "\e045"; }
.day-arrow-up-line:before { content: "\e046"; }
.day-arrow-right-line:before { content: "\e047"; }
.day-arrow-up-circle-line:before { content: "\e048"; }
.day-arrow-left-circle-line:before { content: "\e049"; }
.day-arrow-right-circle-line:before { content: "\e04a"; }
.day-arrow-down-circle-line:before { content: "\e04b"; }
.day-arrow-down-fill:before { content: "\e04c"; }
.day-arrow-left-fill:before { content: "\e04d"; }
.day-arrow-up-fill:before { content: "\e04e"; }
.day-arrow-right-fill:before { content: "\e04f"; }
.day-arrow-down-circle-fill:before { content: "\e050"; }
.day-arrow-left-circle-fill:before { content: "\e051"; }
.day-arrow-up-circle-fill:before { content: "\e052"; }
.day-arrow-right-circle-fill:before { content: "\e053"; }
.day-search-2-line:before { content: "\e054"; }
.day-dribbble-line:before { content: "\e055"; }
.day-instagram-line:before { content: "\e056"; }
.day-whatsapp-line:before { content: "\e057"; }
.day-mail-line:before { content: "\e058"; }
.day-earth-line:before { content: "\e059"; }
.day-facebook-fill:before { content: "\e05a"; }
.day-instagram-fill:before { content: "\e05b"; }
.day-linkedin-fill:before { content: "\e05c"; }
.day-github-fill:before { content: "\e05d"; }
.day-pinterest-fill:before { content: "\e05e"; }
.day-telegram-fill:before { content: "\e05f"; }
.day-twitter-x-line:before { content: "\e060"; }
.day-whatsapp-fill:before { content: "\e061"; }
.day-youtube-fill:before { content: "\e062"; }
.day-mail-fill:before { content: "\e063"; }
.day-file-copy-line:before { content: "\e064"; }
.day-link-solid:before { content: "\e065"; }
.day-fire-line:before { content: "\e066"; }
.day-chat-1-line:before { content: "\e067"; }
.day-double-quotes-l:before { content: "\e068"; }
.day-chevron-down:before { content: "\e069"; }
.day-arrow-drop-down-line:before { content: "\e06a"; }
.day-arrow-drop-left-line:before { content: "\e06b"; }
.day-arrow-drop-right-line:before { content: "\e06c"; }
.day-arrow-drop-up-line:before { content: "\e06d"; }
.day-arrow-left-s-line:before { content: "\e06e"; }
.day-arrow-right-s-line:before { content: "\e06f"; }
.day-arrow-up-s-line:before { content: "\e070"; }
.day-arrow-down-s-line:before { content: "\e071"; }
.day-time-line:before { content: "\e072"; }
.day-user-3-line:before { content: "\e073"; }
.day-youtube-line:before { content: "\e074"; }
.day-images:before { content: "\e075"; }
.day-volume-up-line:before { content: "\e076"; }
.day-pushpin-fill:before { content: "\e077"; }
.day-fire-fill:before { content: "\e078"; }
.day-behance-fill:before { content: "\e079"; }
.day-soundcloud-fill:before { content: "\e07a"; }
.day-tumblr-fill:before { content: "\e07b"; }
.day-stack-overflow-fill:before { content: "\e07c"; }
.day-vimeo-fill:before { content: "\e07d"; }
.day-moon-stars:before { content: "\e07e"; }
.day-sun-fill:before { content: "\e07f"; }
.day-twitter-fill:before { content: "\e080"; }
.day-logo-ps:before { content: "\e902"; }
.day-eye:before { content: "\e903"; }
.day-menu:before { content: "\e904"; }
.day-news_paper:before { content: "\e905"; }
.day-search:before { content: "\e906"; }
.day-search1:before { content: "\e907"; }
.day-arrow-up:before { content: "\e908"; }
.day-right-quote3:before { content: "\e909"; }
.day-left-quote3:before { content: "\e90a"; }
.day-quotes-right2:before { content: "\e90b"; }
.day-quotes-left2:before { content: "\e90c"; }
.day-soundcloud2:before { content: "\e90d"; }
.day-soundcloud1:before { content: "\e90e"; }
.day-volume-lowtw1:before { content: "\e90f"; }
.day-mictw:before { content: "\e910"; }
.day-telegramtw1:before { content: "\e911"; }
.day-headphonestw1:before { content: "\e912"; }
.day-stoptw:before { content: "\e913"; }
.day-playtw2:before { content: "\e914"; }
.day-filmtw1:before { content: "\e915"; }
.day-playtw21:before { content: "\e916"; }
.day-moon:before { content: "\e917"; }
.day-sun:before { content: "\e918"; }
.day-file-picture:before { content: "\e919"; }
.day-camera:before { content: "\e91a"; }
.day-image1:before { content: "\e91b"; }
.day-imagestw1:before { content: "\e91c"; }
.day-eye1:before { content: "\e91d"; }
.day-chevron-up1:before { content: "\e91e"; }
.day-quote-right:before { content: "\e91f"; }
.day-quote-left:before { content: "\e920"; }
.day-feed:before { content: "\e921"; }
.day-feed1:before { content: "\e922"; }
.day-link2:before { content: "\e923"; }
.day-locate:before { content: "\e924"; }
.day-point1:before { content: "\e925"; }
.day-printer2:before { content: "\e926"; }
.day-comment:before { content: "\e927"; }
.day-printer:before { content: "\e928"; }
.day-mode_comment:before { content: "\e929"; }
.day-printer1:before { content: "\e92a"; }
.day-comments2:before { content: "\e92b"; }
.day-content_copy:before { content: "\e92c"; }
.day-instagramtw2:before { content: "\e92d"; }
.day-time:before { content: "\e92e"; }
.day-time1:before { content: "\e92f"; }
.day-copy:before { content: "\e930"; }
.day-copy1:before { content: "\e931"; }
.day-aparat:before { content: "\e935"; }
.day-cloob:before { content: "\e936"; }
.day-fz3:before { content: "\e955"; }
.day-fz1:before { content: "\e956"; }
.day-share:before { content: "\e957"; }
.day-close:before { content: "\e95c"; }
.day-phone1:before { content: "\e962"; }
.day-home3:before { content: "\e96e"; }
.day-qrcode:before { content: "\e979"; }
.day-youtube:before { content: "\e97e"; }
.day-language:before { content: "\e97f"; }
.day-iran:before { content: "\e980"; }
.day-igap:before { content: "\e981"; }
.day-wispi:before { content: "\e982"; }
.day-soroush:before { content: "\e983"; }
.day-gap:before { content: "\e984"; }
.day-Eitaa:before { content: "\e985"; }
.day-bale:before { content: "\e986"; }
.day-rubika:before { content: "\e987"; }
.day-linkedin:before { content: "\e988"; }
.day-linkedin1:before { content: "\e989"; }
.day-pinterest:before { content: "\e98a"; }
.day-link1:before { content: "\e9cb"; }
.day-cancel-circle:before { content: "\ea0d"; }
.day-facebook:before { content: "\ea90"; }
.day-whatsapp:before { content: "\ea93"; }
.day-twitter:before { content: "\ea96"; }
.day-appleinc:before { content: "\eabe"; }
.day-android:before { content: "\eac0"; }
.day-square1:before { content: "\f0c8"; }
.day-circle:before { content: "\f111"; }

/* ========================================================= */
/* استایل دراور اختصاصی کاربر از سمت چپ (کابین موبایل) */
/* ========================================================= */

.user-mobile-drawer {
    position: fixed;
    top: 0;
    left: -300px; /* خروج از سمت چپ (مخالف منوی اصلی) */
    width: 290px;
    height: 100%;
    background: #ffffff;
    z-index: 10005;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 25px 20px;
    box-shadow: 3px 0 20px rgba(0,0,0,0.15);
    overflow-y: auto;
    direction: rtl;
}

.user-mobile-drawer.active {
    left: 0;
}

.user-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.user-drawer-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #222;
}

.close-user-drawer {
    font-size: 2.2rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color 0.2s;
}

.close-user-drawer:hover {
    color: #333;
}

/* کارت اطلاعات پروفایل داخل دراور */
.user-drawer-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fdfbf7;
    border: 1px solid #f5ebd6;
    padding: 15px;
    border-radius: 14px;
    margin-bottom: 25px;
}

.user-drawer-avatar {
    flex-shrink: 0;
}

.user-drawer-avatar img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color, #dcb86f);
}

.user-drawer-avatar .default-avatar-icon.large {
    width: 52px;
    height: 52px;
    font-size: 26px;
    border: none;
}

.user-drawer-info h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 5px;
}

.user-drawer-info .user-credit-badge {
    font-size: 0.8rem;
    background: #fef5e6;
    color: #c4963f;
    padding: 3px 8px;
    border-radius: 30px;
    display: inline-block;
    font-weight: bold;
}

/* تب‌ها و منوها در دراور */
.user-drawer-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-drawer-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #444;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.user-drawer-tab i {
    font-size: 1.1rem;
    color: #777;
    transition: color 0.2s;
}

.user-drawer-tab:hover {
    background: var(--primary-color, #dcb86f);
    color: #fff;
}

.user-drawer-tab:hover i {
    color: #fff;
}

.user-drawer-tab.logout-tab:hover {
    background: #d32f2f !important;
    color: #fff !important;
}

/* ظاهر فرم مهمان در کشو */
.user-drawer-guest-form {
    padding-top: 5px;
}

.user-drawer-guest-form .drawer-login-form .submit-btn {
    transition: all 0.2s ease;
}

.user-drawer-guest-form .drawer-login-form .submit-btn:hover {
    background: #c9a75b;
}

/* ========================================================= */
/* پنهان‌سازی سایدبار پیشخوان پیش‌فرض در حالت موبایل */
/* ========================================================= */

@media (max-width: 991px) {
    .dashboard-sidebar {
        display: none !important; /* پنهان کردن سایدبار پیش‌فرض در برگه پیشخوان */
    }
    
    .dashboard-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .dashboard-content {
        width: 100% !important;
        flex: unset !important;
    }
}