/**
 * Impreza Dark Pro — Custom CSS
 * رفع کامل مشکلات تم تیره و روشن طبق تحلیل کاربر
 * فقط CSS - بدون تغییر PHP/JS/HTML
 */

/* === فونت === */
body, input, textarea, select, button {
    font-family: 'Vazirmatn', system-ui, sans-serif !important;
}

/* === بدنه === */
body { background: var(--bg) !important; color: var(--t) !important; }
body:not(.dark-mode) { background: #f8fafc !important; color: #0f172a !important; }
body.dark-mode { background: #0a0a14 !important; color: #e0e0f0 !important; }

/* ═══ هدر ═══ */
.modern-header {
    background: rgba(255,255,255,0.98) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
body.dark-mode .modern-header {
    background: rgba(10,10,20,0.85) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 0 rgba(0,212,255,0.1) !important;
    border-bottom: 1px solid rgba(42,42,69,0.8) !important;
}

.modern-logo .logo-main {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    -webkit-background-clip: text !important; background-clip: text !important;
    -webkit-text-fill-color: transparent !important; font-weight: 800 !important;
}
body.dark-mode .modern-logo .logo-main {
    background: linear-gradient(135deg, #00d4ff, #ff006e) !important;
    -webkit-background-clip: text !important; background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.nav-link {
    border-radius: 10px !important; color: #475569 !important;
    transition: all 0.2s !important; font-weight: 600 !important;
}
.nav-link:hover { background: #f1f5f9 !important; color: #1e40af !important; }
.nav-link.active { background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important; color: white !important; }
body.dark-mode .nav-link { color: #9a9ab0 !important; }
body.dark-mode .nav-link:hover { background: rgba(0,212,255,0.1) !important; color: #00d4ff !important; }
body.dark-mode .nav-link.active {
    background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(255,0,110,0.2)) !important;
    color: #00d4ff !important;
}

/* دکمه تغییر تم */
.theme-toggle {
    background: #e2e8f0 !important; border: 1px solid #cbd5e1 !important;
    color: #1e293b !important; border-radius: 50% !important; transition: all 0.3s !important;
}
.theme-toggle:hover { transform: rotate(180deg) !important; color: #3b82f6 !important; border-color: #3b82f6 !important; }
body.dark-mode .theme-toggle {
    background: #1a1a2e !important; border: 1px solid #2a2a45 !important;
    color: #9a9ab0 !important;
}
body.dark-mode .theme-toggle:hover { color: #00d4ff !important; border-color: #00d4ff !important; }

/* منوی کشویی کاربر */
.user-dropdown, .dropdown-menu {
    background: #ffffff !important; border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important; border-radius: 12px !important;
}
.user-dropdown a, .dropdown-menu a {
    color: #334155 !important; transition: all 0.15s !important;
}
.user-dropdown a:hover, .dropdown-menu a:hover { background: #f1f5f9 !important; color: #1e40af !important; }
body.dark-mode .user-dropdown, body.dark-mode .dropdown-menu {
    background: #12121f !important; border: 1px solid #2a2a45 !important;
}
body.dark-mode .user-dropdown a, body.dark-mode .dropdown-menu a { color: #9a9ab0 !important; }
body.dark-mode .user-dropdown a:hover, body.dark-mode .dropdown-menu a:hover {
    background: #1a1a2e !important; color: #00d4ff !important;
}

/* trigger کاربر */
.user-trigger, .user-menu-trigger {
    background: #f1f5f9 !important; border: 1px solid #e2e8f0 !important;
    color: #334155 !important; border-radius: 50px !important; transition: all 0.2s !important;
}
.user-trigger:hover, .user-menu-trigger:hover { border-color: #3b82f6 !important; background: #eff6ff !important; }
body.dark-mode .user-trigger, body.dark-mode .user-menu-trigger {
    background: #1a1a2e !important; border: 1px solid #2a2a45 !important; color: #9a9ab0 !important;
}
body.dark-mode .user-trigger:hover { border-color: #00d4ff !important; background: rgba(0,212,255,0.1) !important; }

/* ═══ کارت پست ═══ */
.post-card, .slider-wrapper {
    background: #ffffff !important; border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important; box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    transition: all 0.3s !important; overflow: hidden !important;
}
.post-card:hover, .slider-wrapper:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important; transform: translateY(-2px) !important;
    border-color: #cbd5e1 !important;
}
body.dark-mode .post-card, body.dark-mode .slider-wrapper {
    background: #12121f !important; border: 1px solid #2a2a45 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}
body.dark-mode .post-card:hover, body.dark-mode .slider-wrapper:hover {
    border-color: rgba(0,212,255,0.4) !important; box-shadow: 0 8px 25px rgba(0,0,0,0.4) !important;
}

.post-media img { transition: transform 0.4s !important; }
.post-card:hover .post-media img, .slider-wrapper:hover .post-media img { transform: scale(1.06) !important; }

.post-title { font-weight: 700 !important; color: var(--t) !important; }
.post-card:hover .post-title { color: #3b82f6 !important; }
body.dark-mode .post-card:hover .post-title { color: #00d4ff !important; }

.post-content, .post-content p { color: var(--ts) !important; }
.slider-meta span, .post-meta span { color: var(--tt) !important; }
.slider-meta i, .post-meta i { color: var(--primary-500) !important; }

/* ═══ اسلایدر ═══ */
.slider-header h3 { font-weight: 800 !important; color: var(--t) !important; }
.slider-header h3 i { color: #8b5cf6 !important; }
body.dark-mode .slider-header h3 i { color: #ff006e !important; }

.arrow {
    background: #ffffff !important; border: 1px solid #e2e8f0 !important; color: #475569 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important; transition: all 0.2s !important;
}
.arrow:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important; color: white !important;
    border-color: transparent !important; transform: scale(1.1) !important;
}
body.dark-mode .arrow { background: #12121f !important; border: 1px solid #2a2a45 !important; color: #9a9ab0 !important; }
body.dark-mode .arrow:hover { background: linear-gradient(135deg, #00d4ff, #ff006e) !important; }

/* ═══ دکمه‌ها ═══ */
.btn, .btn-primary, button[type="submit"] {
    border-radius: 10px !important; font-weight: 600 !important; transition: all 0.2s !important;
}
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important; color: white !important;
    border: none !important; box-shadow: 0 2px 8px rgba(59,130,246,0.25) !important;
}
.btn-primary:hover { transform: translateY(-1px) !important; box-shadow: 0 4px 12px rgba(59,130,246,0.35) !important; }
body.dark-mode .btn-primary {
    background: linear-gradient(135deg, #00d4ff, #ff006e) !important;
    box-shadow: 0 2px 8px rgba(0,212,255,0.25) !important;
}

.btn-outline, .btn-secondary {
    background: #f1f5f9 !important; border: 1px solid #e2e8f0 !important; color: #334155 !important;
}
.btn-outline:hover, .btn-secondary:hover { border-color: #3b82f6 !important; color: #3b82f6 !important; background: #eff6ff !important; }
body.dark-mode .btn-outline, body.dark-mode .btn-secondary {
    background: #1a1a2e !important; border: 1px solid #2a2a45 !important; color: #9a9ab0 !important;
}
body.dark-mode .btn-outline:hover { border-color: #00d4ff !important; color: #00d4ff !important; background: rgba(0,212,255,0.1) !important; }

.btn-success { background: linear-gradient(135deg, #10b981, #3b82f6) !important; color: white !important; border: none !important; }
.btn-danger { background: #ef4444 !important; color: white !important; border: none !important; }

/* ═══ صفحه جزئیات پست ═══ */
.single-post-wrapper {
    background: #ffffff !important; border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important; box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}
body.dark-mode .single-post-wrapper {
    background: #12121f !important; border: 1px solid #2a2a45 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
}

.single-post-title {
    font-weight: 800 !important; color: #0f172a !important;
}
body.dark-mode .single-post-title {
    background: linear-gradient(135deg, #00d4ff, #ff006e) !important;
    -webkit-background-clip: text !important; background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* نوار پیشرفت */
.reading-progress-bar { background: transparent !important; }
.reading-progress-fill {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6) !important;
    box-shadow: 0 0 8px rgba(59,130,246,0.3) !important;
}
body.dark-mode .reading-progress-fill {
    background: linear-gradient(90deg, #00d4ff, #ff006e) !important;
    box-shadow: 0 0 10px rgba(0,212,255,0.4) !important;
}

/* اطلاعات نویسنده */
.post-author, .author-widget {
    background: #f8fafc !important; border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important; padding: 16px !important;
}
body.dark-mode .post-author, body.dark-mode .author-widget {
    background: #12121f !important; border: 1px solid #2a2a45 !important;
}

.author-avatar, .author-widget-avatar, #profile-avatar {
    border: 3px solid #3b82f6 !important; border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(59,130,246,0.2) !important;
}
body.dark-mode .author-avatar, body.dark-mode .author-widget-avatar {
    border-color: #00d4ff !important; box-shadow: 0 0 12px rgba(0,212,255,0.3) !important;
}

/* badge زمان مطالعه */
.post-stat-item, .reading-time-badge {
    background: #eff6ff !important; border: 1px solid #bfdbfe !important;
    border-radius: 20px !important; color: #1e40af !important;
    font-size: 0.75rem !important; font-weight: 600 !important;
}
body.dark-mode .post-stat-item, body.dark-mode .reading-time-badge {
    background: rgba(0,212,255,0.1) !important; border: 1px solid rgba(0,212,255,0.3) !important;
    color: #00d4ff !important;
}

/* برچسب دسته‌بندی */
.category-tag {
    background: #f1f5f9 !important; color: #334155 !important;
    border: 1px solid #e2e8f0 !important; border-radius: 20px !important;
    padding: 4px 12px !important; font-size: 0.75rem !important; font-weight: 600 !important;
}
body.dark-mode .category-tag {
    background: rgba(0,212,255,0.1) !important; color: #00d4ff !important;
    border: 1px solid rgba(0,212,255,0.2) !important;
}

/* ═══ دکمه‌های اکشن ═══ */
.action-btn {
    background: #f1f5f9 !important; border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important; color: #475569 !important;
    transition: all 0.25s cubic-bezier(.4,0,.2,1) !important;
    padding: 9px 16px !important; font-weight: 600 !important;
}
.action-btn:hover {
    border-color: #3b82f6 !important; color: #3b82f6 !important; background: #eff6ff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(59,130,246,0.15) !important;
}
body.dark-mode .action-btn {
    background: #1a1a2e !important; border: 1px solid #2a2a45 !important; color: #9a9ab0 !important;
}
body.dark-mode .action-btn:hover {
    border-color: #00d4ff !important; color: #00d4ff !important; background: rgba(0,212,255,0.1) !important;
    box-shadow: 0 3px 10px rgba(0,212,255,0.2) !important;
}

/* دکمه لایک (قرمز) */
.like-btn.liked, .liked .fa-heart {
    background: rgba(239,68,68,0.1) !important; border-color: #ef4444 !important; color: #ef4444 !important;
}
body.dark-mode .like-btn.liked {
    background: rgba(255,0,110,0.15) !important; border-color: #ff006e !important; color: #ff006e !important;
}
.like-btn.liked .fa-heart { color: #ef4444 !important; }
body.dark-mode .like-btn.liked .fa-heart { color: #ff006e !important; }

/* ═══ دکمه ذخیره (bookmark) — حالت ذخیره‌شده با پس‌زمینه بنفش برجسته ═══ */
.bookmark-btn.saved {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    border-color: #4f46e5 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35) !important;
}
.bookmark-btn.saved:hover {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    border-color: #6366f1 !important;
    color: #ffffff !important;
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45) !important;
}
.bookmark-btn.saved i { color: #ffffff !important; animation: bookmarkBounce 0.4s ease; }
body.dark-mode .bookmark-btn.saved {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%) !important;
    border-color: #6366f1 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4) !important;
}
body.dark-mode .bookmark-btn.saved:hover {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%) !important;
    border-color: #818cf8 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55) !important;
}
body.dark-mode .bookmark-btn.saved i { color: #ffffff !important; }

@keyframes bookmarkBounce {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.3) rotate(-8deg); }
    70%  { transform: scale(0.92) rotate(4deg); }
    100% { transform: scale(1) rotate(0); }
}

/* حالت عادی (ذخیره نشده) — دکمه خنثی */
.bookmark-btn:not(.saved) {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
}
.bookmark-btn:not(.saved):hover {
    background: #e0e7ff !important;
    border-color: #a5b4fc !important;
    color: #4f46e5 !important;
}
body.dark-mode .bookmark-btn:not(.saved) {
    background: #1a1a2e !important;
    border-color: #2a2a45 !important;
    color: #9a9ab0 !important;
}
body.dark-mode .bookmark-btn:not(.saved):hover {
    background: rgba(99,102,241,0.15) !important;
    border-color: #6366f1 !important;
    color: #a5b4fc !important;
}

.report-post-btn:hover { border-color: #ef4444 !important; color: #ef4444 !important; }

/* ═══ گالری ═══ */
.gallery-item, .gall-item {
    border-radius: 12px !important; overflow: hidden !important;
    border: 1px solid #e2e8f0 !important; transition: all 0.3s !important;
}
.gallery-item:hover, .gall-item:hover { border-color: #3b82f6 !important; box-shadow: 0 4px 12px rgba(59,130,246,0.15) !important; transform: scale(1.02) !important; }
body.dark-mode .gallery-item, body.dark-mode .gall-item { border: 1px solid #2a2a45 !important; }
body.dark-mode .gallery-item:hover, body.dark-mode .gall-item:hover { border-color: #00d4ff !important; box-shadow: 0 0 15px rgba(0,212,255,0.2) !important; }

.gallery-overlay { background: linear-gradient(to top, rgba(0,0,0,0.8), transparent) !important; }
.image-gallery-grid { gap: 8px !important; }

/* ═══ نظرات ═══ */
.comments-section { background: transparent !important; }
.comment-form, #commentForm {
    background: #f8fafc !important; border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important; padding: 16px !important;
}
body.dark-mode .comment-form, body.dark-mode #commentForm {
    background: #12121f !important; border: 1px solid #2a2a45 !important;
}

.comment-item, .comment {
    background: #f8fafc !important; border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important; padding: 12px !important; margin-bottom: 8px !important;
    transition: all 0.2s !important;
}
.comment-item:hover { border-color: #cbd5e1 !important; }
body.dark-mode .comment-item, body.dark-mode .comment {
    background: #12121f !important; border: 1px solid #2a2a45 !important;
}
body.dark-mode .comment-item:hover { border-color: rgba(0,212,255,0.3) !important; }

.comments-title { color: var(--t) !important; font-weight: 700 !important; }

/* ═══ فرم‌ها ═══ */
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="url"], textarea, select {
    background: #ffffff !important; border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important; color: #0f172a !important; transition: all 0.2s !important;
}
input:focus, textarea:focus, select:focus {
    border-color: #3b82f6 !important; box-shadow: 0 0 0 3px rgba(59,130,246,0.1) !important; outline: none !important;
}
body.dark-mode input, body.dark-mode textarea, body.dark-mode select {
    background: #12121f !important; border: 1px solid #2a2a45 !important; color: #e0e0f0 !important;
}
body.dark-mode input:focus, body.dark-mode textarea:focus {
    border-color: #00d4ff !important; box-shadow: 0 0 0 3px rgba(0,212,255,0.15) !important;
}
input::placeholder, textarea::placeholder { color: #94a3b8 !important; }
body.dark-mode input::placeholder, body.dark-mode textarea::placeholder { color: #5a5a7a !important; }

/* ═══ صفحه ورود/ثبت‌نام ═══ */
.auth-card {
    background: #ffffff !important; border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important; box-shadow: 0 10px 40px rgba(0,0,0,0.08) !important;
}
body.dark-mode .auth-card {
    background: #12121f !important; border: 1px solid #2a2a45 !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
}

.auth-title {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    -webkit-background-clip: text !important; background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
body.dark-mode .auth-title {
    background: linear-gradient(135deg, #00d4ff, #ff006e) !important;
    -webkit-background-clip: text !important; background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.auth-button {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    border-radius: 12px !important; font-weight: 700 !important;
    box-shadow: 0 2px 10px rgba(59,130,246,0.25) !important;
}
body.dark-mode .auth-button {
    background: linear-gradient(135deg, #00d4ff, #ff006e) !important;
    box-shadow: 0 2px 10px rgba(0,212,255,0.3) !important;
}

/**
 * ═══════════════════════════════════════════════════════════════════════════
 * Lock Captcha — Aurora-style for Impreza Dark Pro theme (CORRECTED)
 * ═══════════════════════════════════════════════════════════════════════════
 *
 * این نسخه اصلاح‌شده است. بر اساس تصویر واقعی Aurora:
 *  - چرخ‌ها دایره‌ای هستند (نه مستطیلی)
 *  - پس‌زمینه چرخ‌ها روشن/سفید است
 *  - اعداد سیاه هستند
 *  - خطوط هاشور افقی روی چرخ‌ها (شیارهای قفل چمدانی)
 *  - notch (برش کوچک) در بالای چرخ
 *  - خط افقی وسط container (محور چرخش)
 *  - چرخ‌ها فیزیکی می‌چرخند (transform: rotate)
 *
 * عناصر هدف:
 *  .lock-captcha, .target-label, .target-number, .lock-instruction,
 *  .lock-wheels, .wheel, .wheel-display, .wheel-notch, .lock-separator,
 *  .selected-code, .lock-status, .btn-refresh
 */

/**
 * ═══════════════════════════════════════════════════════════════════════════
 * Lock Captcha — Aurora STRUCTURE for Impreza Dark Pro (v3 FINAL)
 * ═══════════════════════════════════════════════════════════════════════════
 *
 * هدف: ساختار و رفتار کپچای Impreza Dark Pro صدرصد شبیه Aurora شود.
 *       رنگ‌بندی Impreza Dark Pro (تم تیره با نئون سیان/بنفش) حفظ می‌شود.
 *
 * چه چیزهایی از Aurora کپی شده:
 *  - چرخ‌ها مستطیلی (64x90px, border-radius: 10px) - نه دایره‌ای
 *  - خط هاشور افقی هر 8px روی چرخ (via ::after)
 *  - نوار برجسته مرکزی 36px (via ::before)
 *  - خط افقی وسط container (via .lock-wheels::before)
 *  - notch حذف می‌شود (display: none)
 *  - separator حذف می‌شود (display: none)
 *  - wheel-display به صورت absolute در مرکز چرخ
 *
 * چه چیزهای Impreza Dark Pro حفظ می‌شود:
 *  - رنگ‌بندی تیره (background #0a0a14)
 *  - accent رنگ‌ها: سیان #00d4ff، بنفش #7a5cff، صورتی #ff006e
 *  - گرادیانت چندرنگ برای عدد هدف
 *  - glow effects نئون
 *
 * عناصر هدف:
 *  .lock-captcha, .target-label, .target-number, .lock-instruction,
 *  .lock-wheels, .wheel, .wheel-display, .wheel-notch, .lock-separator,
 *  .selected-code, .lock-status, .btn-refresh
 */

/* ═══ Container اصلی کپچا ═══ */
.lock-captcha {
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.6) 0%, rgba(15, 15, 30, 0.7) 100%) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(122, 92, 255, 0.2) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    margin: 10px 0 !important;
    text-align: center !important;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(122, 92, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

body:not(.dark-mode) .lock-captcha,
[data-theme="light"] .lock-captcha {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%) !important;
    border: 1px solid rgba(99, 102, 241, 0.18) !important;
    box-shadow:
        0 8px 24px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

/* ═══ برچسب بالای کپچا ═══ */
.lock-captcha .target-label {
    color: rgba(160, 160, 180, 0.95) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin-bottom: 8px !important;
}

body:not(.dark-mode) .lock-captcha .target-label,
[data-theme="light"] .lock-captcha .target-label {
    color: #475569 !important;
}

/* ═══ عدد هدف (target-number) - گرادیانت چندرنگ Impreza Dark Pro ═══ */
.target-number {
    background: linear-gradient(135deg, #00d4ff 0%, #7a5cff 50%, #ff006e 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    font-weight: 800 !important;
    font-size: 2rem !important;
    letter-spacing: 0.2em !important;
    text-align: center !important;
    margin-bottom: 8px !important;
    direction: ltr !important;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif !important;
    filter: drop-shadow(0 0 12px rgba(122, 92, 255, 0.5));
}

body:not(.dark-mode) .target-number,
[data-theme="light"] .target-number {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 6px rgba(122, 92, 255, 0.25));
}

/* ═══ دستورالعمل (lock-instruction) ═══ */
.lock-captcha .lock-instruction {
    color: rgba(160, 160, 180, 0.85) !important;
    font-size: 12px !important;
    text-align: center !important;
    margin-bottom: 12px !important;
    font-weight: 500 !important;
}

body:not(.dark-mode) .lock-captcha .lock-instruction,
[data-theme="light"] .lock-captcha .lock-instruction {
    color: #64748b !important;
}

/* ═══ Container چرخ‌ها (lock-wheels) - استایل قفل چمدانی Aurora ═══ */
.lock-wheels {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    margin: 12px 0 !important;
    padding: 20px !important;
    background: linear-gradient(180deg, #1a1a2e 0%, #16162a 50%, #1a1a2e 100%) !important;
    border-radius: 16px !important;
    border: 2px solid #2a2a45 !important;
    box-shadow:
        inset 0 4px 12px rgba(0, 0, 0, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 24px rgba(122, 92, 255, 0.08) !important;
    position: relative !important;
    direction: ltr !important;
}

body:not(.dark-mode) .lock-wheels,
[data-theme="light"] .lock-wheels {
    background: linear-gradient(180deg, #e8e8f0 0%, #d8d8e8 50%, #e8e8f0 100%) !important;
    border-color: #c0c0d0 !important;
    box-shadow:
        inset 0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* خط وسط پنجره قفل (مثل قفل چمدانی واقعی) - دقیقا مثل Aurora */
.lock-wheels::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 16px;
    right: 16px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 212, 255, 0.8) 20%,
        rgba(122, 92, 255, 0.9) 50%,
        rgba(0, 212, 255, 0.8) 80%,
        transparent 100%) !important;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 5;
    opacity: 0.85;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

body:not(.dark-mode) .lock-wheels::before,
[data-theme="light"] .lock-wheels::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(99, 102, 241, 0.5) 20%,
        rgba(122, 92, 255, 0.7) 50%,
        rgba(99, 102, 241, 0.5) 80%,
        transparent 100%) !important;
    opacity: 0.6;
    box-shadow: 0 0 6px rgba(122, 92, 255, 0.3);
}

/* ═══ هر چرخ (wheel) - مستطیلی استایل قفل چمدانی (دقیقا مثل Aurora) ═══ */
.wheel {
    width: 64px !important;
    height: 90px !important;
    border-radius: 10px !important;  /* مستطیلی با گوشه گرد، نه دایره‌ای */
    background: linear-gradient(180deg,
        #0d0d18 0%,
        #1a1a2e 15%,
        #2a2a45 45%,
        #2a2a45 55%,
        #1a1a2e 85%,
        #0d0d18 100%) !important;
    border: 1px solid #3a3a55 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #e0e0f0 !important;
    cursor: ns-resize !important;
    user-select: none !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.6),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.3) !important;
    transition: box-shadow 0.2s !important;
    transform: rotate(0deg);  /* برای چرخش فیزیکی مثل قفل */
}

body:not(.dark-mode) .wheel,
[data-theme="light"] .wheel {
    background: linear-gradient(180deg,
        #f0f0f8 0%,
        #e0e0ec 15%,
        #d0d0dc 45%,
        #d0d0dc 55%,
        #e0e0ec 85%,
        #f0f0f8 100%) !important;
    border-color: #b0b0c0 !important;
    color: #1a1a2e !important;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

/* پنجره نمایش عدد (محدود شده در وسط چرخ) - دقیقا مثل Aurora */
.wheel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 36px;
    transform: translateY(-50%);
    background: linear-gradient(180deg,
        rgba(0, 212, 255, 0.1) 0%,
        rgba(122, 92, 255, 0.22) 50%,
        rgba(0, 212, 255, 0.1) 100%) !important;
    border-top: 1px solid rgba(0, 212, 255, 0.45) !important;
    border-bottom: 1px solid rgba(122, 92, 255, 0.45) !important;
    pointer-events: none !important;
    z-index: 1;
}

body:not(.dark-mode) .wheel::before,
[data-theme="light"] .wheel::before {
    background: linear-gradient(180deg,
        rgba(122, 92, 255, 0.08) 0%,
        rgba(122, 92, 255, 0.15) 50%,
        rgba(122, 92, 255, 0.08) 100%) !important;
    border-top-color: rgba(122, 92, 255, 0.3) !important;
    border-bottom-color: rgba(122, 92, 255, 0.3) !important;
}

/* خطوط افقی روی چرخ (مثل شیارهای قفل) - دقیقا مثل Aurora */
.wheel::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        180deg,
        transparent 0px,
        transparent 8px,
        rgba(255, 255, 255, 0.03) 8px,
        rgba(255, 255, 255, 0.03) 9px
    ) !important;
    pointer-events: none !important;
    z-index: 2;
}

body:not(.dark-mode) .wheel::after,
[data-theme="light"] .wheel::after {
    background-image: repeating-linear-gradient(
        180deg,
        transparent 0px,
        transparent 8px,
        rgba(0, 0, 0, 0.04) 8px,
        rgba(0, 0, 0, 0.04) 9px
    ) !important;
}

/* ═══ عدد داخل چرخ (wheel-display) ═══ */
.wheel-display {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #f0f0ff !important;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif !important;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.8),
        0 0 12px rgba(0, 212, 255, 0.4);
    z-index: 3;
    pointer-events: none;
}

body:not(.dark-mode) .wheel-display,
[data-theme="light"] .wheel-display {
    color: #1a1a2e !important;
    text-shadow:
        0 1px 1px rgba(255, 255, 255, 0.5);
}

/* ═══ notch حذف می‌شود (مثل Aurora که notch ندارد) ═══ */
.wheel-notch {
    display: none !important;
}

/* ═══ separator حذف می‌شود (مثل Aurora که separator ندارد) ═══ */
.lock-separator {
    display: none !important;
}

/* ═══ Hover روی چرخ (دقیقا مثل Aurora) ═══ */
.wheel:hover {
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.6),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(0, 212, 255, 0.4),
        0 0 20px rgba(122, 92, 255, 0.2) !important;
}

body:not(.dark-mode) .wheel:hover,
[data-theme="light"] .wheel:hover {
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(122, 92, 255, 0.3) !important;
}

/* ═══ Active روی چرخ (دقیقا مثل Aurora) ═══ */
.wheel:active,
.wheel:focus {
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.8),
        inset 0 -1px 2px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(0, 212, 255, 0.6),
        0 0 24px rgba(0, 212, 255, 0.25) !important;
    outline: none !important;
}

body:not(.dark-mode) .wheel:active,
body:not(.dark-mode) .wheel:focus,
[data-theme="light"] .wheel:active,
[data-theme="light"] .wheel:focus {
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 -1px 2px rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(122, 92, 255, 0.5) !important;
}

/* ═══ حالت باز شدن قفل (unlocked) - سبز نئونی (دقیقا مثل Aurora) ═══ */
.lock-wheels.unlocked .wheel,
.lock-captcha.unlocked .wheel {
    background: linear-gradient(180deg,
        #0d1a0d 0%,
        #1a2e1a 15%,
        #2a452a 45%,
        #2a452a 55%,
        #1a2e1a 85%,
        #0d1a0d 100%) !important;
    border-color: #10b981 !important;
    color: #a0f0a0 !important;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.6),
        0 0 16px rgba(16, 185, 129, 0.5) !important;
    animation: auroraUnlockPulse 0.6s ease;
}

body:not(.dark-mode) .lock-wheels.unlocked .wheel,
body:not(.dark-mode) .lock-captcha.unlocked .wheel,
[data-theme="light"] .lock-wheels.unlocked .wheel,
[data-theme="light"] .lock-captcha.unlocked .wheel {
    background: linear-gradient(180deg,
        #d1fae5 0%,
        #a7f3d0 15%,
        #6ee7b7 45%,
        #6ee7b7 55%,
        #a7f3d0 85%,
        #d1fae5 100%) !important;
    border-color: #10b981 !important;
    color: #064e3b !important;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 0 16px rgba(16, 185, 129, 0.4) !important;
}

.lock-wheels.unlocked .wheel::before,
.lock-captcha.unlocked .wheel::before {
    background: linear-gradient(180deg,
        rgba(16, 185, 129, 0.12) 0%,
        rgba(16, 185, 129, 0.25) 50%,
        rgba(16, 185, 129, 0.12) 100%) !important;
    border-top-color: rgba(16, 185, 129, 0.55) !important;
    border-bottom-color: rgba(16, 185, 129, 0.55) !important;
}

.lock-wheels.unlocked .wheel-display,
.lock-captcha.unlocked .wheel-display {
    color: #6ee7b7 !important;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.6),
        0 0 16px rgba(16, 185, 129, 0.6);
}

body:not(.dark-mode) .lock-wheels.unlocked .wheel-display,
body:not(.dark-mode) .lock-captcha.unlocked .wheel-display,
[data-theme="light"] .lock-wheels.unlocked .wheel-display,
[data-theme="light"] .lock-captcha.unlocked .wheel-display {
    color: #047857 !important;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

@keyframes auroraUnlockPulse {
    0%   { transform: scale(1) rotate(var(--rot, 0deg)); }
    40%  { transform: scale(1.06) rotate(var(--rot, 0deg)); }
    100% { transform: scale(1) rotate(var(--rot, 0deg)); }
}

/* ═══ کد انتخاب‌شده (selected-code) ═══ */
.lock-captcha .selected-code {
    color: rgba(160, 160, 180, 0.95) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin: 8px 0 4px 0 !important;
    padding: 6px 14px !important;
    background: rgba(0, 212, 255, 0.08) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(0, 212, 255, 0.18) !important;
}

.lock-captcha .selected-code span,
.lock-captcha .selected-code #selectedCodeValue {
    color: #00d4ff !important;
    font-family: 'Vazirmatn', 'Tahoma', monospace !important;
    font-weight: 700 !important;
    direction: ltr !important;
    display: inline-block;
    min-width: 60px;
    text-shadow: 0 0 6px rgba(0, 212, 255, 0.3);
}

body:not(.dark-mode) .lock-captcha .selected-code,
[data-theme="light"] .lock-captcha .selected-code {
    color: #475569 !important;
    background: rgba(99, 102, 241, 0.06) !important;
    border-color: rgba(99, 102, 241, 0.18) !important;
}

body:not(.dark-mode) .lock-captcha .selected-code span,
body:not(.dark-mode) .lock-captcha .selected-code #selectedCodeValue,
[data-theme="light"] .lock-captcha .selected-code span,
[data-theme="light"] .lock-captcha .selected-code #selectedCodeValue {
    color: #6366f1 !important;
    text-shadow: none;
}

/* ═══ وضعیت قفل (lock-status) ═══ */
.lock-status {
    text-align: center !important;
    font-weight: 700 !important;
    margin: 6px 0 !important;
    min-height: 2em !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: all 0.3s !important;
}

.lock-status.unlocked {
    color: #10b981 !important;
    font-size: 1.1rem !important;
    text-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
    animation: aurora-success-pulse 0.6s ease;
}

@keyframes aurora-success-pulse {
    0%   { transform: scale(0.8); opacity: 0; }
    50%  { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* ═══ دکمه refresh (btn-refresh) - استایل Aurora btn-ghost ═══ */
.lock-captcha .btn-refresh,
.lock-captcha [class*="btn-refresh"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    margin: 8px auto 0 auto !important;
    background: linear-gradient(135deg, rgba(122, 92, 255, 0.18) 0%, rgba(0, 212, 255, 0.15) 100%) !important;
    border: 1px solid rgba(0, 212, 255, 0.35) !important;
    color: #00d4ff !important;
    border-radius: 18px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    font-family: inherit !important;
    width: fit-content !important;
}

.lock-captcha .btn-refresh:hover {
    background: linear-gradient(135deg, rgba(122, 92, 255, 0.28) 0%, rgba(0, 212, 255, 0.25) 100%) !important;
    border-color: rgba(0, 212, 255, 0.55) !important;
    color: #66e8ff !important;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.2);
}

body:not(.dark-mode) .lock-captcha .btn-refresh,
[data-theme="light"] .lock-captcha .btn-refresh {
    background: rgba(99, 102, 241, 0.08) !important;
    border-color: rgba(99, 102, 241, 0.25) !important;
    color: #6366f1 !important;
}

body:not(.dark-mode) .lock-captcha .btn-refresh:hover,
[data-theme="light"] .lock-captcha .btn-refresh:hover {
    background: rgba(99, 102, 241, 0.15) !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
    color: #4f46e5 !important;
}

/* ═══ پاسخگو (Responsive) - مثل Aurora ═══ */
@media (max-width: 480px) {
    .wheel {
        width: 54px !important;
        height: 76px !important;
        font-size: 1.7rem !important;
    }
    .wheel-display {
        font-size: 1.7rem !important;
    }
    .target-number {
        font-size: 1.7rem !important;
    }
    .lock-wheels {
        padding: 14px 10px !important;
        gap: 8px !important;
    }
}

/* ═══ انیمیشن ورود کپچا ═══ */
@keyframes auroraCaptchaFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lock-captcha {
    animation: auroraCaptchaFadeIn 0.4s ease-out;
}


/* ═══ صفحه پروفایل ═══ */
.profile-header {
    background: #ffffff !important; border: 1px solid #e2e8f0 !important; border-radius: 20px !important;
}
body.dark-mode .profile-header { background: #12121f !important; border: 1px solid #2a2a45 !important; }

.profile-avatar, #profile-avatar {
    border: 4px solid #3b82f6 !important; box-shadow: 0 2px 10px rgba(59,130,246,0.2) !important;
}
body.dark-mode .profile-avatar { border-color: #00d4ff !important; box-shadow: 0 0 15px rgba(0,212,255,0.3) !important; }

.profile-username { color: var(--t) !important; font-weight: 700 !important; }
.profile-bio { color: var(--ts) !important; }

.stat { border-radius: 12px !important; transition: all 0.2s !important; }
.stat:hover { background: #f1f5f9 !important; }
.stat-number { font-weight: 800 !important; color: #3b82f6 !important; }
body.dark-mode .stat:hover { background: rgba(0,212,255,0.1) !important; }
body.dark-mode .stat-number { color: #00d4ff !important; }

.follow-btn.btn-primary { background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important; }
body.dark-mode .follow-btn.btn-primary { background: linear-gradient(135deg, #00d4ff, #ff006e) !important; }
.follow-btn.following, .follow-btn.btn-outline {
    background: #f1f5f9 !important; color: #475569 !important; border: 1px solid #e2e8f0 !important;
}
body.dark-mode .follow-btn.following { background: #1a1a2e !important; color: #9a9ab0 !important; border: 1px solid #2a2a45 !important; }

.tab { border-bottom: 3px solid transparent !important; color: #475569 !important; font-weight: 600 !important; }
.tab:hover { color: #0f172a !important; }
.tab.active { border-bottom-color: #3b82f6 !important; color: #3b82f6 !important; }
body.dark-mode .tab { color: #9a9ab0 !important; }
body.dark-mode .tab.active { border-bottom-color: #00d4ff !important; color: #00d4ff !important; }

/* ═══ استوری ═══ */
.story-circle-img-wrapper { border: 3px solid #3b82f6 !important; transition: all 0.2s !important; }
.story-circle:hover .story-circle-img-wrapper { box-shadow: 0 0 10px rgba(59,130,246,0.3) !important; }
body.dark-mode .story-circle-img-wrapper { border-color: #00d4ff !important; }
body.dark-mode .story-circle:hover .story-circle-img-wrapper { box-shadow: 0 0 12px rgba(0,212,255,0.4) !important; }

/* ═══ ویجت‌های سایدبار ═══ */
.recent-posts-widget, .author-widget, .widget {
    background: #f8fafc !important; border: 1px solid #e2e8f0 !important; border-radius: 14px !important; padding: 14px !important;
}
body.dark-mode .recent-posts-widget, body.dark-mode .author-widget {
    background: #12121f !important; border: 1px solid #2a2a45 !important;
}

.widget-title { color: var(--t) !important; font-weight: 700 !important; font-size: 0.95rem !important; }

.recent-tile { border-radius: 10px !important; transition: all 0.2s !important; }
.recent-tile:hover { background: #f1f5f9 !important; }
body.dark-mode .recent-tile:hover { background: rgba(0,212,255,0.08) !important; }

/* ═══ هشتگ‌ها ═══ */
.tag-link, .hashtag, a[href*="search.php?q=%23"] {
    background: #eff6ff !important; color: #1e40af !important;
    border: 1px solid #bfdbfe !important; border-radius: 20px !important;
    padding: 3px 12px !important; font-size: 0.8rem !important; transition: all 0.2s !important;
}
.tag-link:hover { background: #3b82f6 !important; color: white !important; }
body.dark-mode .tag-link, body.dark-mode .hashtag {
    background: rgba(0,212,255,0.1) !important; color: #00d4ff !important;
    border: 1px solid rgba(0,212,255,0.2) !important;
}
body.dark-mode .tag-link:hover { background: #00d4ff !important; color: #0a0a14 !important; }

/* ═══ ویژه badge ═══ */
.featured-badge {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important; color: white !important; border-radius: 20px !important;
}
body.dark-mode .featured-badge { background: linear-gradient(135deg, #00d4ff, #ff006e) !important; }

/* ═══ صفحه کاربران ═══ */
.user-card, .users-grid > * {
    background: #ffffff !important; border: 1px solid #e2e8f0 !important; border-radius: 16px !important; transition: all 0.3s !important;
}
.user-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important; transform: translateY(-2px) !important; border-color: #cbd5e1 !important; }
body.dark-mode .user-card { background: #12121f !important; border: 1px solid #2a2a45 !important; }
body.dark-mode .user-card:hover { border-color: rgba(0,212,255,0.4) !important; box-shadow: 0 0 15px rgba(0,212,255,0.15) !important; }

/* ═══ فوتر ═══ */
.s4-footer, .modern-footer, footer {
    background: #f1f5f9 !important; border-top: 1px solid #e2e8f0 !important;
}
body.dark-mode .s4-footer, body.dark-mode footer {
    background: #0a0a14 !important; border-top: 1px solid rgba(0,212,255,0.1) !important;
}

.s4-footer__copy, .footer-copy, footer p { color: #64748b !important; }
.s4-footer__links a, footer a { color: #475569 !important; transition: color 0.2s !important; }
.s4-footer__links a:hover, footer a:hover { color: #3b82f6 !important; }
body.dark-mode .s4-footer__copy, body.dark-mode footer p { color: #5a5a7a !important; }
body.dark-mode .s4-footer__links a, body.dark-mode footer a { color: #9a9ab0 !important; }
body.dark-mode .s4-footer__links a:hover, body.dark-mode footer a:hover { color: #00d4ff !important; }

/* ═══ اسکرول‌بار ═══ */
::-webkit-scrollbar { width: 8px !important; height: 8px !important; }
::-webkit-scrollbar-track { background: transparent !important; }
::-webkit-scrollbar-thumb { background: #cbd5e1 !important; border-radius: 4px !important; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8 !important; }
body.dark-mode ::-webkit-scrollbar-thumb { background: #2a2a45 !important; }
body.dark-mode ::-webkit-scrollbar-thumb:hover { background: #3a3a55 !important; }

::selection { background: #3b82f6 !important; color: white !important; }
body.dark-mode ::selection { background: #00d4ff !important; color: #0a0a14 !important; }

/* ═══ پیام‌ها ═══ */
.bubble-sent, .message-bubble.sent {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important; color: white !important;
    border-radius: 16px 16px 4px 16px !important;
}
body.dark-mode .bubble-sent { background: linear-gradient(135deg, #00d4ff, #ff006e) !important; }

.bubble-received, .message-bubble.received {
    background: #f1f5f9 !important; color: #0f172a !important;
    border: 1px solid #e2e8f0 !important; border-radius: 16px 16px 16px 4px !important;
}
body.dark-mode .bubble-received { background: #1a1a2e !important; color: #e0e0f0 !important; border: 1px solid #2a2a45 !important; }

/* ═══ FAB ═══ */
.fab {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    box-shadow: 0 4px 15px rgba(59,130,246,0.3) !important; transition: all 0.3s !important;
}
.fab:hover { transform: scale(1.1) rotate(90deg) !important; }
body.dark-mode .fab { background: linear-gradient(135deg, #00d4ff, #ff006e) !important; box-shadow: 0 4px 15px rgba(0,212,255,0.4) !important; }

/* ═══ مودال ═══ */
.sadaf-modal-overlay { backdrop-filter: blur(6px) !important; background: rgba(0,0,0,0.4) !important; }
body.dark-mode .sadaf-modal-overlay { background: rgba(0,0,0,0.6) !important; }

.sadaf-confirm-modal, .modal {
    background: #ffffff !important; border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important; box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
}
body.dark-mode .sadaf-confirm-modal, body.dark-mode .modal {
    background: #12121f !important; border: 1px solid #2a2a45 !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6) !important;
}

.confirm-icon { border-radius: 50% !important; }
.confirm-icon.warning { background: linear-gradient(135deg, #f59e0b, #ef4444) !important; color: white !important; }
.confirm-icon.danger { background: #ef4444 !important; color: white !important; }
.confirm-message { color: var(--t) !important; }

.confirm-yes, .btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important; color: white !important;
    border: none !important; border-radius: 10px !important; font-weight: 700 !important;
}
.confirm-no, .btn-cancel {
    background: #f1f5f9 !important; color: #475569 !important; border: 1px solid #e2e8f0 !important; border-radius: 10px !important;
}
body.dark-mode .confirm-no { background: #1a1a2e !important; color: #9a9ab0 !important; border: 1px solid #2a2a45 !important; }

/* ═══ Toast ═══ */
.toast, #toast-container > div {
    border-radius: 12px !important; font-weight: 600 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

/* ═══ پیج لودر ═══ */
.page-loader { background: #f8fafc !important; }
.page-loader-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    -webkit-background-clip: text !important; background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.page-loader-spinner { border-color: rgba(59,130,246,0.2) !important; border-top-color: #3b82f6 !important; }
body.dark-mode .page-loader { background: #0a0a14 !important; }
body.dark-mode .page-loader-text {
    background: linear-gradient(135deg, #00d4ff, #ff006e) !important;
    -webkit-background-clip: text !important; background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
body.dark-mode .page-loader-spinner { border-color: rgba(0,212,255,0.2) !important; border-top-color: #00d4ff !important; }

/* ═══ انیمیشن ═══ */
.post-card, .slider-wrapper, .user-card { animation: idp-fade-in 0.3s ease-out; }
@keyframes idp-fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ═══ Back to top ═══ */
.back-to-top, #backToTop {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important; color: white !important;
    border: none !important; border-radius: 50% !important; box-shadow: 0 4px 12px rgba(59,130,246,0.3) !important;
}
body.dark-mode .back-to-top, body.dark-mode #backToTop {
    background: linear-gradient(135deg, #00d4ff, #ff006e) !important; box-shadow: 0 4px 12px rgba(0,212,255,0.4) !important;
}

/* ═══ کپشن استوری مودال ═══ */
#story-caption-modal > div {
    background: #ffffff !important; border: 1px solid #e2e8f0 !important; border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12) !important;
}
body.dark-mode #story-caption-modal > div { background: #12121f !important; border: 1px solid #2a2a45 !important; }
#story-caption-ok {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important; border: none !important;
    border-radius: 10px !important; font-weight: 700 !important;
}
body.dark-mode #story-caption-ok { background: linear-gradient(135deg, #00d4ff, #ff006e) !important; }
