/* ═══════════════════════════════════════════════════════════
   INDEX FULL STYLESHEET - SUNSET JUSTICE
   PART 1: VARIABLES, RESET, LOADER, MEGA HEADER, MOBILE MENU
   ═══════════════════════════════════════════════════════════ */

/* ----- ریشه متغیرها (تم روشن پیش‌فرض) ----- */
:root {
    /* رنگ‌های اصلی طلایی */
    --gold: #d4af37;
    --gold-dark: #b8941f;
    --gold-light: #f0d576;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --gold-dim: rgba(212, 175, 55, 0.1);
    --gold-border: rgba(212, 175, 55, 0.25);
    --gold-border-strong: rgba(212, 175, 55, 0.6);
    
    /* رنگ‌های پس‌زمینه و کارت */
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: rgba(30, 41, 59, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-light: rgba(255, 255, 255, 0.12);
    
    /* رنگ‌های متن */
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --text-light: #cbd5e1;
    
    /* رنگ‌های وضعیت */
    --success: #10b981;
    --info: #3b82f6;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* سایه‌ها */
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.2);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.4);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.5);
    --shadow-gold: 0 0 25px var(--gold-glow);
    --shadow-gold-sm: 0 0 15px var(--gold-glow);
    
    /* فاصله‌ها و اندازه‌ها */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-2xl: 40px;
    --radius-full: 9999px;
    
    /* انیمیشن‌ها */
    --transition: 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    --transition-slow: 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    
    /* ارتفاع هدر */
    --header-h: 88px;
    --header-h-scrolled: 64px;
    
    /* لایه‌بندی */
    --z-header: 1000;
    --z-mega: 999;
    --z-dropdown: 998;
    --z-mobile: 2000;
    --z-modal: 9999;
    --z-loader: 99998;
}

/* ----- تم تاریک (با کلاس روی body) ----- */
body.dark-mode {
    --bg-dark: #020617;
    --bg-darker: #000000;
    --bg-card: rgba(10, 15, 35, 0.7);
    --glass-bg: rgba(0, 0, 0, 0.3);
    --glass-border: rgba(255, 255, 255, 0.05);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.6);
}

/* ----- ریست و پایه ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(145deg, #0a0e27, #050814);
    color: var(--text-main);
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s, color 0.2s;
}

body.dark-mode {
    background: linear-gradient(145deg, #020617, #000000);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- اسکرول بار سفارشی ----- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}
body.dark-mode ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   ROYAL LOADER 
   ============================================ */
#globalLoader {
    position: fixed;
    inset: 0;
    z-index: var(--z-loader);
    background: linear-gradient(135deg, #0a0e27 0%, #050810 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}
#globalLoader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-inner {
    text-align: center;
    position: relative;
}
.loader-seal {
    width: 140px;
    height: 140px;
    margin: 0 auto 2rem;
    position: relative;
    animation: sealRotate 12s linear infinite;
}
.loader-seal svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(200, 168, 75, 0.4));
}
.loader-seal-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sealRotate 12s linear infinite reverse;
}
.loader-seal-center i {
    font-size: 2.5rem;
    color: #f5d878;
    filter: drop-shadow(0 0 12px rgba(200, 168, 75, 0.5));
}
@keyframes sealRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.loader-title {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: #c8a84b;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.loader-subtitle {
    font-size: 0.85rem;
    color: #606880;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}
.loader-bar-wrap {
    width: 240px;
    height: 3px;
    background: rgba(200, 168, 75, 0.15);
    border-radius: 9999px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}
.loader-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #8a6820, #f5d878, #8a6820);
    background-size: 200% 100%;
    border-radius: 9999px;
    animation: loaderFill 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards, goldShimmer 1.5s linear infinite;
}
@keyframes loaderFill {
    from { width: 0%; }
    to { width: 100%; }
}
@keyframes goldShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   MEGA HEADER (کامل و یکپارچه)
   ============================================ */
.main-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-h);
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1.5px solid var(--gold-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.03);
    z-index: var(--z-header);
    transition: height 0.35s var(--transition), background 0.35s, box-shadow 0.35s;
}
.main-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.4s, width 0.4s var(--transition);
}
.main-header.scrolled {
    height: var(--header-h-scrolled);
    background: rgba(5, 8, 20, 0.96);
    backdrop-filter: blur(25px) saturate(200%);
    box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 60px var(--gold-dim);
}
.main-header.scrolled::after {
    opacity: 1;
    width: 80%;
}
.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    gap: 1.5rem;
}
.brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: transform 0.3s var(--transition);
}
.brand-link:hover {
    transform: translateX(-3px);
}
.brand-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #0f172a;
    box-shadow: 0 8px 24px var(--gold-glow), 0 0 0 3px rgba(251,191,36,0.2);
    position: relative;
    overflow: hidden;
}
.brand-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: iconShine 3s ease-in-out infinite;
}
@keyframes iconShine {
    0% { left: -100%; }
    100% { left: 100%; }
}
.brand-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.brand-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: #ffffff;
}
.brand-sub {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.desktop-nav {
    display: none;
    height: 100%;
    flex: 1;
    justify-content: center;
}
@media (min-width: 1024px) {
    .desktop-nav { display: flex; }
}
.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
    list-style: none;
}
.nav-link {
    position: relative;
    color: var(--text-light);
    text-decoration: none;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.93rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
}
.nav-link i:first-child {
    font-size: 1rem;
    color: var(--text-muted);
    transition: color 0.3s;
}
.nav-link:hover, .nav-link.active {
    color: var(--gold);
}
.nav-link:hover i:first-child, .nav-link.active i:first-child {
    color: var(--gold);
}
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform 0.35s var(--transition);
    box-shadow: 0 0 12px var(--gold-glow);
}
.nav-link:hover::before, .nav-link.active::before {
    transform: scaleX(1);
}
.arrow {
    font-size: 0.65rem;
    transition: transform 0.3s var(--transition);
}
.has-mega:hover .arrow, .has-drop:hover .arrow {
    transform: rotate(180deg);
}
.mega-wrapper {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    background: rgba(10, 15, 35, 0.98);
    backdrop-filter: blur(30px) saturate(200%);
    border: 1.5px solid var(--gold-border-strong);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: 0 30px 60px rgba(0,0,0,0.7), 0 0 80px var(--gold-dim);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.35s var(--transition), transform 0.35s, visibility 0.35s;
    pointer-events: none;
    z-index: var(--z-mega);
}
.has-mega.active .mega-wrapper,
.has-drop.active .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.mega-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 36px 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.mega-col .col-title {
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid var(--gold-border);
}
.mega-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mega-links a {
    text-decoration: none;
    color: var(--text-muted);
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.25s var(--transition);
}
.mega-links a:hover {
    background: var(--gold-dim);
    border-color: var(--gold-border);
    color: var(--gold);
    transform: translateX(-5px);
}
.mega-links strong {
    display: block;
    color: var(--text-main);
    font-size: 0.9rem;
    margin-bottom: 3px;
}
.mega-links small {
    font-size: 0.75rem;
    opacity: 0.8;
}
.featured-card {
    background: linear-gradient(145deg, rgba(30,41,59,0.9), rgba(15,23,42,0.9));
    border: 1.5px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all 0.3s var(--transition);
}
.featured-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px var(--gold-dim);
}
.featured-card .big-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 12px;
}
.featured-card h4 {
    color: var(--text-main);
    margin-bottom: 8px;
}
.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0f172a;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s;
}
.btn-sm:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 8px 20px var(--gold-glow);
    transform: translateY(-2px);
}
.dropdown {
    position: absolute;
    top: 100%;
    background: rgba(10, 15, 35, 0.98);
    backdrop-filter: blur(20px);
    list-style: none;
    min-width: 260px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 8px;
    border: 1.5px solid var(--gold-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 30px var(--gold-dim);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s var(--transition), transform 0.3s, visibility 0.3s;
    z-index: var(--z-dropdown);
}
.dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.25s;
}
.dropdown a:hover {
    background: var(--gold-dim);
    color: var(--gold);
    transform: translateX(-4px);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.online-badge {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(16, 185, 129, 0.08);
    border: 1.5px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}
@media (min-width: 768px) {
    .online-badge { display: flex; }
}
.online-badge:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--success);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}
.pulse {
    width: 9px;
    height: 9px;
    background: var(--success);
    border-radius: 50%;
    display: block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.action-btns {
    display: none;
    gap: 10px;
}
@media (min-width: 768px) {
    .action-btns { display: flex; }
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.3s var(--transition);
    cursor: pointer;
    border: none;
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0f172a;
    box-shadow: 0 6px 18px var(--gold-glow);
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-3px);
    box-shadow: 0 12px 28px var(--gold-glow);
}
.btn-outline {
    background: rgba(255,255,255,0.02);
    border: 1.5px solid var(--gold-border);
    color: var(--text-main);
}
.btn-outline:hover {
    background: var(--gold-dim);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}
.burger-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
}
@media (min-width: 1024px) {
    .burger-menu { display: none; }
}
.burger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 7px);
    background: var(--gold);
}
.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
    background: var(--gold);
}
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 15, 0.8);
    backdrop-filter: blur(8px);
    z-index: calc(var(--z-mobile) - 1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mobile-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -320px;
    width: 300px;
    background: linear-gradient(180deg, #0f172a, #050814);
    border-left: 1.5px solid var(--gold-border-strong);
    box-shadow: -10px 0 50px rgba(0,0,0,0.7);
    z-index: var(--z-mobile);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: right 0.35s var(--transition);
}
.mobile-sidebar.active {
    right: 0;
}
.sidebar-header {
    padding: 22px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gold-border);
}
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--gold);
}
.close-sidebar {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}
.close-sidebar:hover {
    background: rgba(239,68,68,0.2);
    border-color: var(--danger);
    color: var(--danger);
    transform: rotate(90deg);
}
.sidebar-content {
    flex: 1;
    padding: 14px;
}
.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.m-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.25s;
}
.m-link:hover, .m-link.active {
    background: var(--gold-dim);
    color: var(--gold);
    box-shadow: inset 3px 0 0 var(--gold);
}
.m-accordion {
    margin-bottom: 2px;
}
.m-accordion-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.93rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.25s;
}
.m-accordion.open .m-accordion-btn {
    color: var(--gold);
    background: var(--gold-dim);
}
.m-accordion-btn .fa-chevron-down {
    transition: transform 0.3s;
}
.m-accordion.open .m-accordion-btn .fa-chevron-down {
    transform: rotate(180deg);
}
.m-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--transition);
    padding-right: 20px;
    margin-right: 16px;
    border-right: 2px solid var(--gold-border);
}
.m-sub-group {
    margin: 12px 0;
}
.m-sub-group h6 {
    color: var(--gold);
    font-size: 0.8rem;
    margin-bottom: 6px;
}
.m-accordion-content a {
    display: block;
    padding: 10px 0;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
}
.m-accordion-content a:hover {
    color: var(--gold);
    transform: translateX(-4px);
}
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--gold-border);
}
.m-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--success);
    font-weight: 600;
    margin-bottom: 16px;
}
.full-width {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
}

/* ============================================
   دکمه تغییر تم (Theme Toggle)
   ============================================ */
.theme-toggle-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--gold-border-strong);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    transition: all var(--transition);
    color: var(--gold);
    font-size: 1.2rem;
}
.theme-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-gold);
}

/* ============================================
   دکمه بازگشت به بالا
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--gold-border-strong);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    color: var(--gold);
    font-size: 1.2rem;
    z-index: 99;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--gold);
    color: #0f172a;
    transform: translateY(-3px);
}

/* ============================================
   انیمیشن‌های عمومی
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
/* ═══════════════════════════════════════════════════════════
   INDEX FULL STYLESHEET - SUNSET JUSTICE
   PART 2: HERO, STATS, SERVICES (Glassmorphism + Animations)
   ═══════════════════════════════════════════════════════════ */

/* ============================================
   بخش HERO مدرن (Glassmorphism با نور طلایی)
   ============================================ */
.hero-modern {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 8px 20px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--gold);
    animation: fadeInDown 0.8s ease;
}

.hero-badge i {
    font-size: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-title .gold-text {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.2s ease;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease;
}

/* دکمه‌های عمومی (تکمیل از پارت ۱) */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    background: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0e27;
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--gold-glow);
}

.btn-outline {
    border: 1.5px solid var(--gold-border-strong);
    color: var(--text-main);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: var(--gold-dim);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
}

/* ============================================
   بخش آمار (Stats) – کارت‌های شیشه‌ای با شمارنده
   ============================================ */
.stats-section {
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: scaleX(0);
    transition: transform 0.5s;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-dim);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 12px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    direction: ltr;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   بخش خدمات (Services) – کارت‌های شیشه‌ای با آیکون
   ============================================ */
.services-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gold-dim);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--gold);
    transition: 0.3s;
}

.service-card:hover .service-icon {
    background: var(--gold);
    color: #0a0e27;
    transform: rotate(5deg) scale(1.05);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}

.service-link:hover {
    gap: 12px;
}

/* ============================================
   ریسپانسیو پارت ۲
   ============================================ */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .hero-modern {
        padding: 100px 0 60px;
        min-height: 80vh;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        padding: 24px;
    }
    .hero-title {
        font-size: 2rem;
    }
}
/* ═══════════════════════════════════════════════════════════
   INDEX FULL STYLESHEET - SUNSET JUSTICE
   PART 3: NEWS, ONLINE SPOTLIGHT, FAQ (Glassmorphism + Accordion)
   ═══════════════════════════════════════════════════════════ */

/* ============================================
   بخش اخبار و اطلاعیه‌ها (News Section)
   ============================================ */
.news-section {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent, var(--glass-bg));
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.news-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.news-image {
    height: 180px;
    background: linear-gradient(135deg, var(--gold-dim), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gold);
    transition: transform 0.3s;
}

.news-card:hover .news-image {
    transform: scale(1.02);
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 0.75rem;
    color: var(--gold);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-date i {
    font-size: 0.7rem;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-main);
}

.news-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}

.news-link:hover {
    gap: 12px;
}

/* ============================================
   بخش Spotlight اعضای آنلاین (Online Spotlight)
   ============================================ */
.online-spotlight {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--glass-bg), transparent);
}

.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.spotlight-member {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
    cursor: pointer;
}

.spotlight-member:hover {
    border-color: var(--gold);
    transform: translateX(-5px);
    box-shadow: var(--shadow-sm);
}

.spotlight-avatar {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gold);
    overflow: hidden;
    flex-shrink: 0;
}

.spotlight-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-info {
    flex: 1;
}

.spotlight-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
}

.spotlight-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* دکمه مشاهده همه در بخش Spotlight */
.spotlight-footer {
    text-align: center;
    margin-top: 30px;
}

/* ============================================
   بخش سوالات متداول (FAQ) – آکاردئون
   ============================================ */
.faq-section {
    padding: 80px 0;
}

.faq-grid {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: var(--gold-dim);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-main);
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--gold-dim);
}

.faq-question i:first-child {
    color: var(--gold);
    font-size: 1.2rem;
    margin-left: 12px;
}

.faq-question span {
    flex: 1;
}

.faq-question i:last-child {
    transition: transform 0.3s;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.faq-item.active .faq-question i:last-child {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 24px;
    color: var(--text-muted);
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px 24px;
    border-top-color: var(--glass-border);
}

.faq-answer p {
    line-height: 1.7;
}

/* ============================================
   ریسپانسیو پارت ۳
   ============================================ */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .spotlight-grid {
        grid-template-columns: 1fr;
    }
    .faq-question {
        padding: 16px;
        font-size: 0.9rem;
    }
    .faq-answer {
        font-size: 0.85rem;
    }
    .faq-question i:first-child {
        font-size: 1rem;
    }
    .news-section, .faq-section {
        padding: 60px 0;
    }
    .online-spotlight {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .news-image {
        height: 140px;
        font-size: 2rem;
    }
    .news-content {
        padding: 16px;
    }
    .news-title {
        font-size: 1rem;
    }
    .spotlight-member {
        padding: 12px;
    }
    .spotlight-avatar {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    .faq-question {
        padding: 12px 16px;
    }
    .faq-item.active .faq-answer {
        padding: 0 16px 16px 16px;
    }
}
/* ═══════════════════════════════════════════════════════════
   INDEX FULL STYLESHEET - SUNSET JUSTICE
   PART 4: CTA, FOOTER, NOTIFICATION MODAL, ABOUT MODAL
   ═══════════════════════════════════════════════════════════ */

/* ============================================
   بخش CTA میانی (Call To Action)
   ============================================ */
.cta-modern {
    padding: 80px 0;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, var(--gold-dim), transparent);
    position: relative;
    overflow: hidden;
}

.cta-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212,175,55,0.05) 0%, transparent 70%);
    animation: ctaPulse 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ctaPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.cta-modern h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-modern p {
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-modern .btn {
    position: relative;
    z-index: 1;
}

/* ============================================
   فوتر مدرن (Footer Modern)
   ============================================ */
.footer-modern {
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* ستون اول: لوگو و توضیحات */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #0a0e27;
}

.footer-logo-text {
    font-weight: 800;
    font-size: 1rem;
}

.footer-logo-sub {
    font-size: 0.7rem;
    color: var(--gold);
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-top: 8px;
}

/* سایر ستون‌ها */
.footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gold);
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-links li i:first-child {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(-5px);
}

.footer-links li i:first-child {
    width: 24px;
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================
   مودال اطلاعیه کانال (Notification Modal)
   ============================================ */
.notification-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    padding: 1rem;
}

.notification-modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.notification-modal {
    position: relative;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    max-width: 560px;
    width: 100%;
    border-radius: 40px;
    border: 1px solid var(--gold-border-strong);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.15) inset, 0 0 20px var(--gold-glow-sm);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.2);
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.notification-modal-overlay.active .notification-modal {
    transform: scale(1) translateY(0);
}

.notification-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    z-index: 2;
}

.modal-notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem 0.7rem 2rem;
    background: linear-gradient(135deg, var(--gold-dim), rgba(0, 0, 0, 0.2));
}

.modal-notif-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.close-modal-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--text-muted);
    transition: all 0.25s;
    border: 1px solid var(--gold-border);
}

.close-modal-icon:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
    color: var(--danger);
    transform: rotate(90deg) scale(1.05);
}

.modal-banner {
    background: linear-gradient(115deg, var(--gold-dim), rgba(212, 175, 55, 0.04));
    margin: 1rem 2rem;
    padding: 1.2rem;
    border-radius: 28px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    border: 1px solid var(--gold-border);
    backdrop-filter: blur(8px);
}

.modal-banner:hover {
    border-color: var(--gold);
    box-shadow: 0 5px 20px var(--gold-glow-sm);
}

.banner-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #0a0e27;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.banner-text strong {
    font-size: 1rem;
    display: block;
    color: var(--gold-light);
    font-weight: 800;
}

.banner-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.modal-notif-body {
    padding: 0.2rem 2rem 0.5rem 2rem;
}

.notif-description {
    background: rgba(0, 0, 0, 0.35);
    padding: 1rem 1.2rem;
    border-radius: 24px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.notif-description .highlight {
    color: var(--gold-light);
    font-weight: 800;
    background: var(--gold-dim);
    padding: 0.2rem 0.7rem;
    border-radius: 40px;
    display: inline-block;
    margin-bottom: 6px;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.5rem 0 0.5rem;
}

.checkbox-dontshow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid var(--gold-border);
}

.checkbox-dontshow:hover {
    background: var(--gold-dim);
    border-color: var(--gold);
}

.checkbox-dontshow input {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
}

.checkbox-dontshow label {
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
}

.button-group-modal {
    display: flex;
    gap: 0.9rem;
}

.btn-modal {
    border: none;
    font-family: inherit;
    font-weight: 700;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-modal-outline {
    background: transparent;
    border: 1.5px solid var(--glass-border);
    color: var(--text-main);
}

.btn-modal-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
    background: var(--gold-dim);
}

.btn-modal-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0e27;
    box-shadow: 0 5px 15px var(--gold-glow);
}

.btn-modal-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px var(--gold-glow);
}

.modal-footer-note {
    padding: 1rem 2rem 1.6rem;
    font-size: 0.7rem;
    text-align: center;
    color: var(--text-dim);
    border-top: 1px solid var(--gold-border);
    margin-top: 0.6rem;
}

/* ============================================
   مودال درباره ما (About Modal)
   ============================================ */
.about-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 15, 0.85);
    backdrop-filter: blur(12px);
    z-index: calc(var(--z-modal) + 10);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.about-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.about-modal {
    position: fixed;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    background: radial-gradient(circle at 20% 10%, rgba(30,40,70,0.98), rgba(10,15,35,0.98));
    backdrop-filter: blur(20px);
    border: 1.5px solid var(--gold-border-strong);
    border-radius: var(--radius-2xl);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 60px var(--gold-dim);
    z-index: calc(var(--z-modal) + 11);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s var(--transition);
}

.about-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(50%, -50%) scale(1);
}

.about-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--gold-border);
    background: var(--gold-dim);
}

.about-modal .modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--gold);
}

.about-modal .modal-close {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.about-modal .modal-close:hover {
    background: rgba(239,68,68,0.15);
    border-color: var(--danger);
    color: var(--danger);
    transform: rotate(90deg);
}

.about-modal .modal-body {
    padding: 28px;
    color: var(--text-light);
}

.creator-profile {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--gold-border);
}

.creator-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #0f172a;
    box-shadow: 0 10px 30px var(--gold-glow);
}

.creator-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 6px;
}

.creator-title {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.skills-section h3,
.experience-section h3 {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
    margin-bottom: 30px;
}

.skill-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    transition: all 0.25s;
}

.skill-item:hover {
    background: var(--gold-dim);
    border-color: var(--gold);
    transform: translateY(-4px);
}

.skill-icon {
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 8px;
    display: block;
}

.skill-name {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-light);
}

.experience-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.exp-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 18px;
    transition: all 0.25s;
}

.exp-card:hover {
    border-color: var(--gold);
    transform: translateX(6px);
}

.exp-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.exp-icon {
    width: 48px;
    height: 48px;
    background: var(--gold-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gold);
}

.exp-title {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.exp-duration {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.exp-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.ai-section {
    background: linear-gradient(135deg, rgba(168,85,247,0.1), rgba(168,85,247,0.02));
    border: 1px solid rgba(168,85,247,0.3);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 10px;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ai-icon {
    font-size: 1.6rem;
    color: #a855f7;
}

.ai-title {
    color: #c084fc;
    font-weight: 800;
    font-size: 1rem;
}

.ai-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.about-modal .modal-footer {
    padding: 18px 28px;
    border-top: 1px solid var(--gold-border);
    text-align: center;
    background: rgba(0,0,0,0.2);
}

.about-modal .modal-footer p {
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--gold);
    color: #0f172a;
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--gold-glow);
}

/* ============================================
   ریسپانسیو پارت ۴
   ============================================ */
@media (max-width: 768px) {
    .cta-modern {
        padding: 60px 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .footer-logo {
        justify-content: center;
    }
    .footer-title::after {
        right: 50%;
        transform: translateX(50%);
        width: 60px;
    }
    .footer-links li {
        justify-content: center;
    }
    .notification-modal {
        max-width: 94%;
        border-radius: 30px;
    }
    .modal-notif-header {
        padding: 1rem 1.2rem 0.3rem 1.2rem;
    }
    .modal-notif-header h3 {
        font-size: 1.2rem;
    }
    .modal-banner {
        margin: 0.8rem 1.2rem;
        flex-direction: column;
        text-align: center;
    }
    .modal-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .checkbox-dontshow {
        justify-content: center;
    }
    .button-group-modal {
        justify-content: center;
    }
    .about-modal {
        width: 95%;
        max-height: 80vh;
    }
    .about-modal .modal-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cta-modern h2 {
        font-size: 1.5rem;
    }
    .footer-logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .skill-item {
        padding: 12px;
    }
    .skill-icon {
        font-size: 1.3rem;
    }
    .exp-header {
        flex-direction: column;
        text-align: center;
    }
    .exp-icon {
        margin: 0 auto;
    }
}
/* ═══════════════════════════════════════════════════════════
   INDEX FULL STYLESHEET - SUNSET JUSTICE
   PART 5: DARK MODE COMPLETE, RESPONSIVE FINAL, ADVANCED ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

/* ============================================
   تکمیل متغیرهای تم تاریک برای تمام بخش‌ها
   ============================================ */
body.dark-mode {
    /* بازنویسی متغیرهای پایه (تضمینی) */
    --bg-dark: #020617;
    --bg-darker: #000000;
    --bg-card: rgba(10, 15, 35, 0.85);
    --glass-bg: rgba(0, 0, 0, 0.45);
    --glass-border: rgba(255, 255, 255, 0.06);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.5);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.6);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.7);
}

/* تنظیمات اختصاصی دارک برای المان‌هایی که به متغیر وابسته نیستند */
body.dark-mode .hero-modern::before {
    background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
}

body.dark-mode .stat-card,
body.dark-mode .service-card,
body.dark-mode .news-card,
body.dark-mode .spotlight-member,
body.dark-mode .faq-item {
    background: var(--bg-card);
    border-color: var(--glass-border);
}

body.dark-mode .stat-card:hover,
body.dark-mode .service-card:hover,
body.dark-mode .news-card:hover,
body.dark-mode .spotlight-member:hover,
body.dark-mode .faq-item:hover {
    border-color: var(--gold-border);
    box-shadow: var(--shadow-md);
}

body.dark-mode .footer-modern {
    background: #010101;
    border-top-color: rgba(212, 175, 55, 0.15);
}

body.dark-mode .notification-modal {
    background: linear-gradient(145deg, #0f172a, #020617);
}

body.dark-mode .about-modal {
    background: radial-gradient(circle at 20% 10%, rgba(10,20,40,0.98), rgba(2,6,20,0.98));
}

body.dark-mode .btn-outline {
    border-color: var(--gold-border);
}

body.dark-mode .btn-outline:hover {
    background: var(--gold-dim);
}

/* ============================================
   ریسپانسیو پیشرفته نهایی (تمام رزولوشن‌ها)
   ============================================ */

/* تبلت (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }
    .hero-title {
        font-size: 3rem;
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .spotlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* موبایل بزرگ (480px - 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .hero-modern {
        padding: 100px 0 50px;
        min-height: 85vh;
    }
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 16px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .stat-card {
        padding: 20px 12px;
    }
    .stat-number {
        font-size: 1.6rem;
    }
    .service-card {
        padding: 24px 20px;
    }
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
    .news-image {
        height: 150px;
    }
    .spotlight-member {
        padding: 14px;
    }
    .faq-question {
        padding: 14px 18px;
    }
    .cta-modern {
        padding: 50px 0;
    }
    .cta-modern h2 {
        font-size: 1.6rem;
    }
}

/* موبایل کوچک (تا 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
    .hero-badge {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .section-desc {
        font-size: 0.9rem;
    }
    .service-title {
        font-size: 1.1rem;
    }
    .service-desc {
        font-size: 0.85rem;
    }
    .news-title {
        font-size: 1rem;
    }
    .news-excerpt {
        font-size: 0.85rem;
    }
    .spotlight-info h4 {
        font-size: 0.9rem;
    }
    .footer-title {
        font-size: 0.9rem;
    }
    .footer-desc, .footer-links a, .footer-bottom {
        font-size: 0.75rem;
    }
    .theme-toggle-btn, .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 16px;
    }
    .theme-toggle-btn {
        left: 16px;
    }
    .back-to-top {
        right: 16px;
    }
}

/* لپ‌تاپ (1024px - 1280px) */
@media (min-width: 1024px) and (max-width: 1280px) {
    .container {
        max-width: 1100px;
        padding: 0 20px;
    }
    .hero-title {
        font-size: 3.5rem;
    }
}

/* دسکتاپ بزرگ (بیش از 1440px) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    .hero-title {
        font-size: 5rem;
    }
    .hero-subtitle {
        font-size: 1.4rem;
    }
    .stats-grid {
        gap: 32px;
    }
    .services-grid {
        gap: 32px;
    }
}

/* ============================================
   انیمیشن‌های پیشرفته و افکت‌های تعاملی
   ============================================ */

/* انیمیشن اسکرول (AOS) – بهبود یافته */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* تاخیرهای مختلف */
[data-aos][data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos][data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos][data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos][data-aos-delay="400"] { transition-delay: 0.4s; }
[data-aos][data-aos-delay="500"] { transition-delay: 0.5s; }

/* انیمیشن‌های مختلف */
[data-aos="fade-up"] { transform: translateY(30px); }
[data-aos="fade-down"] { transform: translateY(-30px); }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="zoom-in"] { transform: scale(0.9); }
[data-aos="zoom-out"] { transform: scale(1.1); }

[data-aos].aos-animate {
    transform: translateY(0) translateX(0) scale(1);
}

/* افکت hover پیشرفته برای کارت‌ها */
.stat-card, .service-card, .news-card, .spotlight-member {
    will-change: transform;
    transition: transform 0.3s var(--transition), border-color 0.3s, box-shadow 0.3s;
}

.stat-card:hover, .service-card:hover, .news-card:hover {
    transform: translateY(-10px);
}

.spotlight-member:hover {
    transform: translateX(-8px);
}

/* افکت shimmer برای دکمه‌های اصلی */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

/* انیمیشن ورود پلکانی برای کارت‌ها */
.services-grid .service-card:nth-child(1) { transition-delay: 0.05s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.15s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.2s; }

.news-grid .news-card:nth-child(1) { transition-delay: 0.05s; }
.news-grid .news-card:nth-child(2) { transition-delay: 0.1s; }
.news-grid .news-card:nth-child(3) { transition-delay: 0.15s; }

/* افکت درخشش طلایی برای آیکون‌ها روی hover */
.service-icon, .stat-icon, .news-image i {
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    text-shadow: 0 0 10px var(--gold-glow);
}

/* انیمیشن نبض برای دکمه تغییر تم */
@keyframes gentlePulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--gold-glow); }
    50% { box-shadow: 0 0 0 8px rgba(212,175,55,0); }
}

.theme-toggle-btn {
    animation: gentlePulse 2s infinite;
}

/* انیمیشن اسکرول نرم برای لینک‌های داخلی */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

/* بهبود دسترسی (focus visible) */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

/* کاهش حرکت برای کاربرانی که motion را ترجیح نمی‌دهند */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    [data-aos] {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================
   بهبودهای نهایی ریسپانسیو برای هدر موبایل
   ============================================ */
@media (max-width: 1024px) {
    .main-header.scrolled {
        height: 60px;
    }
    .brand-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
    .brand-title {
        font-size: 1rem;
    }
    .brand-sub {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .brand-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 10px;
    }
    .brand-sub {
        display: none;
    }
    .header-inner {
        padding: 0 12px;
    }
    .online-badge {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    .online-badge .pulse {
        width: 6px;
        height: 6px;
    }
}

/* ============================================
   افکت glassmorphism قوی‌تر برای کارت‌ها در حالت hover
   ============================================ */
.stat-card, .service-card, .news-card, .spotlight-member {
    backdrop-filter: blur(12px);
}

.stat-card:hover, .service-card:hover, .news-card:hover, .spotlight-member:hover {
    backdrop-filter: blur(16px);
    background: var(--bg-card);
}

/* ============================================
   پایان فایل CSS کامل
   ============================================ */
   
   
/* ═══════════════════════════════════════════════════════════
   INDEX FULL STYLESHEET - SUNSET JUSTICE
   PART 6: ONLINE MEMBERS MODAL (Glassmorphism + Dark/Light)
   ═══════════════════════════════════════════════════════════ */

/* ============================================
   مودال اعضای آنلاین (Online Members Modal)
   ============================================ */

/* ----- Overlay مودال ----- */
.online-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: calc(var(--z-modal) + 20);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.online-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ----- کانتینر اصلی مودال ----- */
.online-members-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 95%;
    max-width: 1200px;
    max-height: 85vh;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gold-border);
    box-shadow: var(--shadow-lg), 0 0 40px var(--gold-dim);
    z-index: calc(var(--z-modal) + 21);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.online-members-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* ----- هدر مودال ----- */
.online-modal-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--gold-dim), rgba(0, 0, 0, 0.2));
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.online-modal-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.online-modal-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--success), #059669);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.online-modal-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.count-badge {
    background: var(--success);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 10px;
}

.online-modal-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.online-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
    color: var(--danger);
    transform: rotate(90deg);
}

/* ----- فیلترهای مودال ----- */
.online-modal-filters {
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
    overflow-x: auto;
    flex-shrink: 0;
    scrollbar-width: thin;
}

.online-modal-filters::-webkit-scrollbar {
    height: 5px;
}

.online-modal-filters::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.online-modal-filters::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn i {
    font-size: 0.85rem;
}

.filter-btn:hover {
    background: var(--gold-dim);
    border-color: var(--gold);
    color: var(--gold);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-color: var(--gold);
    color: #0a0e27;
    font-weight: 600;
    box-shadow: 0 5px 15px var(--gold-glow);
}

/* ----- بدنه مودال (لیست اعضا) ----- */
.online-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    scrollbar-width: thin;
}

.online-modal-body::-webkit-scrollbar {
    width: 8px;
}

.online-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.online-modal-body::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.online-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ----- کارت هر عضو ----- */
.online-member-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.online-member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--success), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.online-member-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.online-member-card:hover::before {
    opacity: 1;
}

/* ----- هدر کارت (آواتار + اطلاعات) ----- */
.member-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.member-card-avatar {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.member-card-avatar img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid var(--glass-border);
}

.online-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--success);
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    animation: pulseOnline 2s infinite;
}

@keyframes pulseOnline {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.member-card-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 5px;
    color: var(--text-main);
}

.member-card-role {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.member-card-category {
    display: inline-block;
    padding: 3px 10px;
    background: var(--gold-dim);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-full);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
}

/* دسته‌بندی‌های مختلف */
.member-card-category.prosecutor {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}
.member-card-category.judge {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}
.member-card-category.lawyer {
    background: var(--gold-dim);
    border-color: var(--gold-border);
    color: var(--gold);
}
.member-card-category.jury {
    background: rgba(155, 89, 182, 0.1);
    border-color: rgba(155, 89, 182, 0.3);
    color: #9b59b6;
}
.member-card-category.forensic {
    background: rgba(26, 188, 156, 0.1);
    border-color: rgba(26, 188, 156, 0.3);
    color: #1abc9c;
}

/* ----- آمار درون کارت ----- */
.member-card-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-item i {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.8rem;
}

.stat-item-text {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ----- حالت خالی (بدون عضو) ----- */
.online-modal-empty {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
}

.empty-text {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.empty-subtext {
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ============================================
   تکمیل متغیرهای تم تاریک برای مودال آنلاین
   ============================================ */
body.dark-mode .online-members-modal {
    background: rgba(5, 10, 25, 0.95);
    border-color: var(--gold-border);
}

body.dark-mode .online-member-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

body.dark-mode .online-modal-header {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(0, 0, 0, 0.3));
}

body.dark-mode .filter-btn {
    background: rgba(0, 0, 0, 0.3);
}

body.dark-mode .filter-btn.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0e27;
}

body.dark-mode .online-dot {
    border-color: rgba(5, 10, 25, 0.95);
}

body.dark-mode .empty-icon {
    background: rgba(255, 255, 255, 0.02);
}

/* ============================================
   انیمیشن ورود کارت‌ها (stagger effect)
   ============================================ */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.online-member-card {
    animation: slideInUp 0.4s ease backwards;
}

.online-member-card:nth-child(1) { animation-delay: 0.05s; }
.online-member-card:nth-child(2) { animation-delay: 0.1s; }
.online-member-card:nth-child(3) { animation-delay: 0.15s; }
.online-member-card:nth-child(4) { animation-delay: 0.2s; }
.online-member-card:nth-child(5) { animation-delay: 0.25s; }
.online-member-card:nth-child(6) { animation-delay: 0.3s; }

/* ============================================
   ریسپانسیو مودال آنلاین
   ============================================ */
@media (max-width: 768px) {
    .online-members-modal {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    .online-modal-header {
        padding: 20px;
    }
    .online-modal-title h2 {
        font-size: 1.2rem;
    }
    .online-modal-filters {
        padding: 15px 20px;
    }
    .online-modal-body {
        padding: 20px;
    }
    .online-members-grid {
        grid-template-columns: 1fr;
    }
    .member-card-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .online-modal-header {
        padding: 15px;
    }
    .online-modal-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .online-modal-title h2 {
        font-size: 1rem;
    }
    .member-card-stats {
        grid-template-columns: 1fr;
    }
    .member-card-header {
        flex-direction: column;
        text-align: center;
    }
    .member-card-avatar {
        margin-bottom: 10px;
    }
}
/* ═══════════════════════════════════════════════════════════
   INDEX FULL STYLESHEET - SUNSET JUSTICE
   PART 7: BUTTON FIXES, RIPPLE EFFECT, ENHANCED ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

/* ============================================
   بازنویسی کامل و تقویت استایل دکمه‌ها (رفع مشکل سیاهی)
   ============================================ */

/* دکمه پایه */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    background: transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* دکمه طلایی اصلی (btn-gold) - برای هدر و هر جای دیگر */
.btn-gold,
.btn-gold:link,
.btn-gold:visited {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: #0a0e27 !important;
    box-shadow: 0 4px 15px var(--gold-glow) !important;
    border: none !important;
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold)) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px var(--gold-glow) !important;
    color: #0a0e27 !important;
}

.btn-gold:active {
    transform: translateY(1px) !important;
}

/* دکمه پرایمری (همان طلایی) - برای هماهنگی */
.btn-primary,
.btn-primary:link,
.btn-primary:visited {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: #0a0e27 !important;
    box-shadow: 0 4px 15px var(--gold-glow) !important;
    border: none !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold)) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px var(--gold-glow) !important;
}

/* دکمه outline (حاشیه‌ای) */
.btn-outline,
.btn-outline:link,
.btn-outline:visited {
    background: transparent !important;
    border: 1.5px solid var(--gold-border-strong) !important;
    color: var(--text-main) !important;
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: var(--gold-dim) !important;
    border-color: var(--gold) !important;
    color: var(--gold) !important;
    transform: translateY(-3px) !important;
}

/* دکمه سکندری (برای مواقع خاص) */
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--gold-dim);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

/* دکمه کوچک (مثل مگامنو) */
.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0f172a;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-sm:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 8px 20px var(--gold-glow);
    transform: translateY(-2px);
}

/* دکمه‌های موجود در فوتر و بخش‌های دیگر */
.footer-modern .btn-outline {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* حالت disabled برای دکمه‌ها */
.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   انیمیشن ریپل (موج کلیک) برای همه دکمه‌ها
   ============================================ */
.btn {
    position: relative;
    overflow: hidden;
}

.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleAnimation 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnimation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================
   انیمیشن‌های جدید و افکت‌های زیبا
   ============================================ */

/* افکت درخشش border برای کارت‌ها هنگام hover */
.stat-card, .service-card, .news-card, .spotlight-member {
    position: relative;
}

.stat-card::after, .service-card::after, .news-card::after, .spotlight-member::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent, var(--gold), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.stat-card:hover::after, .service-card:hover::after, .news-card:hover::after, .spotlight-member:hover::after {
    opacity: 1;
}

/* افکت شناور (float) برای آیکون هیرو */
.hero-badge i {
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* افکت تایپ‌رایتر برای عنوان هیرو (اختیاری) */
.hero-title .gold-text {
    display: inline-block;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { text-shadow: 0 0 5px var(--gold-glow); }
    50% { text-shadow: 0 0 20px var(--gold-glow); }
}

/* افکت حرکت گرادیانت برای دکمه طلایی */
.btn-gold, .btn-primary {
    background-size: 150% 150%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* افکت hover برای لینک‌های فوتر */
.footer-links a {
    position: relative;
    transition: all 0.3s;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s;
}

.footer-links a:hover::before {
    width: 100%;
}

/* ============================================
   رفع باگ‌های ریسپانسیو و بهبود نمایش در موبایل
   ============================================ */

/* اصلاح دکمه‌ها در موبایل برای عدم شکستگی */
@media (max-width: 768px) {
    .btn, .btn-gold, .btn-primary, .btn-outline {
        padding: 10px 20px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .header-actions .btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    
    /* جلوگیری از سرریز دکمه‌ها در هدر موبایل */
    .action-btns {
        gap: 6px;
    }
    
    /* دکمه تمام عرض در سایدبار موبایل */
    .full-width {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .btn, .btn-gold, .btn-primary, .btn-outline {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   رفع مشکل دکمه‌های بدون استایل در حالت تاریک
   ============================================ */
body.dark-mode .btn-gold,
body.dark-mode .btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: #0a0e27 !important;
}

body.dark-mode .btn-outline {
    border-color: var(--gold-border) !important;
    color: var(--text-main) !important;
}

body.dark-mode .btn-outline:hover {
    background: var(--gold-dim) !important;
    border-color: var(--gold) !important;
    color: var(--gold) !important;
}

/* ============================================
   بهبود دسترسی و تاکید focus برای دکمه‌ها
   ============================================ */
.btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: var(--radius-full);
}

/* ============================================
   رفع تداخل با استایل‌های قدیمی (در صورت وجود)
   ============================================ */
/* اطمینان از عدم اعمال استایل ناخواسته از فایل‌های دیگر */
.btn-gold, .btn-primary, .btn-outline {
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* حذف هرگونه border اضافی که ممکن است از فایل‌های دیگر آمده باشد */
.btn-gold, .btn-primary {
    border: none !important;
}

/* ============================================
   انیمیشن اسکرول نرم برای لینک‌های داخلی
   ============================================ */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

/* ============================================
   پایان پارت ۷ - تمام باگ‌های دکمه رفع شد
   ============================================ */
   
/* ═══════════════════════════════════════════════════════════
   INDEX FULL STYLESHEET - SUNSET JUSTICE
   PART 8: COMPLETE LIGHT MODE REWRITE (REAL WHITE/BRIGHT)
   ═══════════════════════════════════════════════════════════ */

/* ============================================
   بازنویسی کامل متغیرهای تم روشن (Light Mode)
   ============================================ */
/* توجه: این قوانین باید بعد از متغیرهای پیش‌فرض (root) قرار گیرند */
/* و در صورت نبود کلاس dark-mode روی body، اعمال شوند */

/* حذف یا override متغیرهای پیش‌فرض تیره */
:root {
    /* تم روشن واقعی (پیش‌فرض) */
    --bg-light-page: #f8fafc;
    --bg-card-light: rgba(255, 255, 255, 0.85);
    --glass-bg-light: rgba(255, 255, 255, 0.7);
    --glass-border-light: rgba(0, 0, 0, 0.08);
    --text-main-light: #1e293b;
    --text-muted-light: #475569;
    --text-dim-light: #64748b;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md-light: 0 8px 24px rgba(0, 0, 0, 0.08);
}

body {
    /* اعمال متغیرهای روشن به عنوان پیش‌فرض */
    background: linear-gradient(145deg, #fef9f0 0%, #eef2ff 100%);
    color: var(--text-main-light);
}

body.dark-mode {
    /* دارک مود保持不变 */
    background: linear-gradient(145deg, #0a0e27, #050814);
    color: var(--text-main);
}

/* بازنویسی متغیرها در سطح المان‌ها برای لایت مود (پیش‌فرض) */
:root {
    --bg-dark: #f8fafc;
    --bg-darker: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-strong: rgba(212, 175, 55, 0.4);
    --text-main: #1e293b;
    --text-muted: #475569;
    --text-light: #334155;
    --text-dim: #64748b;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* بازنویسی متغیرهای تم دارک (با کلاس dark-mode روی body) */
body.dark-mode {
    --bg-dark: #020617;
    --bg-darker: #000000;
    --bg-card: rgba(10, 15, 35, 0.85);
    --glass-bg: rgba(0, 0, 0, 0.45);
    --glass-border: rgba(255, 255, 255, 0.06);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ============================================
   تنظیمات اختصاصی تم روشن برای المان‌ها
   ============================================ */
/* کارت‌ها در لایت مود */
.stat-card, .service-card, .news-card, .spotlight-member, .faq-item {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border-color: var(--glass-border);
}

body:not(.dark-mode) .stat-card,
body:not(.dark-mode) .service-card,
body:not(.dark-mode) .news-card,
body:not(.dark-mode) .spotlight-member,
body:not(.dark-mode) .faq-item {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow-sm);
}

body:not(.dark-mode) .stat-card:hover,
body:not(.dark-mode) .service-card:hover,
body:not(.dark-mode) .news-card:hover,
body:not(.dark-mode) .spotlight-member:hover,
body:not(.dark-mode) .faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

/* هدر در لایت مود */
body:not(.dark-mode) .main-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-bottom-color: rgba(212, 175, 55, 0.3);
}

body:not(.dark-mode) .main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body:not(.dark-mode) .brand-title {
    color: #0f172a;
}

body:not(.dark-mode) .nav-link {
    color: #334155;
}

body:not(.dark-mode) .nav-link:hover,
body:not(.dark-mode) .nav-link.active {
    color: var(--gold-dark);
}

/* دکمه‌ها در لایت مود */
body:not(.dark-mode) .btn-outline {
    border-color: rgba(0, 0, 0, 0.2);
    color: #1e293b;
}

body:not(.dark-mode) .btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    color: var(--gold-dark);
}

/* فوتر در لایت مود */
body:not(.dark-mode) .footer-modern {
    background: #f1f5f9;
    border-top-color: rgba(0, 0, 0, 0.08);
}

body:not(.dark-mode) .footer-links a,
body:not(.dark-mode) .footer-desc {
    color: #475569;
}

body:not(.dark-mode) .footer-links a:hover {
    color: var(--gold-dark);
}

/* مودال‌ها در لایت مود */
body:not(.dark-mode) .online-members-modal,
body:not(.dark-mode) .notification-modal,
body:not(.dark-mode) .about-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-color: var(--gold-border);
}

body:not(.dark-mode) .online-modal-header,
body:not(.dark-mode) .modal-notif-header,
body:not(.dark-mode) .about-modal .modal-header {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(0, 0, 0, 0.02));
}

body:not(.dark-mode) .online-member-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.05);
}

body:not(.dark-mode) .online-member-card:hover {
    border-color: var(--gold);
}

/* بخش CTA در لایت مود */
body:not(.dark-mode) .cta-modern {
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.1), transparent);
}

body:not(.dark-mode) .cta-modern h2,
body:not(.dark-mode) .cta-modern p {
    color: #1e293b;
}

/* آمار در لایت مود */
body:not(.dark-mode) .stat-number {
    color: #0f172a;
}

/* اسکرول بار در لایت مود */
body:not(.dark-mode) ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}
body:not(.dark-mode) ::-webkit-scrollbar-thumb {
    background: #c8a84b;
}

/* دکمه تغییر تم در لایت مود */
body:not(.dark-mode) .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--gold-dark);
}

/* ============================================
   اطمینان از تضاد کافی در لایت مود
   ============================================ */
body:not(.dark-mode) .hero-title .gold-text {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
}

body:not(.dark-mode) .section-tag,
body:not(.dark-mode) .service-link,
body:not(.dark-mode) .news-link {
    color: var(--gold-dark);
}

body:not(.dark-mode) .service-card:hover .service-icon {
    background: var(--gold);
    color: white;
}

/* ============================================
   ریسپانسیو تضمینی برای لایت مود
   ============================================ */
@media (max-width: 768px) {
    body:not(.dark-mode) .main-header {
        background: rgba(255, 255, 255, 0.95);
    }
}


/* ============================================
   NEWS SECTION MODERN (اخبار داینامیک)
   ============================================ */
.news-section-modern {
    padding: 80px 0;
}

.news-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.news-card-modern {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

.news-card-modern:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.news-card-image {
    height: 160px;
    background: linear-gradient(135deg, var(--gold-dim), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--gold);
    position: relative;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card-modern:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold);
    color: #0a0e27;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-card-content {
    padding: 20px;
}

.news-card-date {
    font-size: 0.75rem;
    color: var(--gold);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.badge-category {
    background: var(--gold-dim);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--gold);
}

.news-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-main);
}

.news-card-excerpt {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-card-link {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}

.news-card-link:hover {
    gap: 12px;
}

/* ============================================
   رفع استایل مودال اطلاعیه کانال دادگستری
   (تم روشن و تاریک)
   ============================================ */

/* Overlay اصلی مودال (قبلاً در global-components.css یا index-redesign.css تعریف شده، اینجا کامل می‌کنیم) */
.notification-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    padding: 1rem;
}

.notification-modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* محفظه اصلی مودال */
.notification-modal {
    position: relative;
    max-width: 560px;
    width: 100%;
    border-radius: 40px;
    border: 1px solid;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px inset;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.2);
    overflow: hidden;
}

.notification-modal-overlay.active .notification-modal {
    transform: scale(1) translateY(0);
}

/* دکور حاشیه بالایی */
.notification-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    z-index: 2;
}

/* تم روشن (پیش‌فرض) */
.notification-modal {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-color: var(--gold-border);
    color: #1e293b;
}
.notification-modal .modal-notif-header h3 {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.notification-modal .close-modal-icon {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gold-border);
    color: #475569;
}
.notification-modal .modal-banner {
    background: linear-gradient(115deg, var(--gold-dim), rgba(0,0,0,0.02));
    border: 1px solid var(--gold-border);
}
.notification-modal .notif-description {
    background: rgba(0, 0, 0, 0.02);
    color: #334155;
}
.notification-modal .checkbox-dontshow {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--gold-border);
}
.notification-modal .btn-modal-outline {
    border: 1.5px solid #cbd5e1;
    color: #1e293b;
}
.notification-modal .btn-modal-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0e27;
}
.notification-modal .modal-footer-note {
    border-top: 1px solid var(--gold-border);
    color: #64748b;
}

/* تم تاریک (با کلاس dark-mode روی body) */
body.dark-mode .notification-modal {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-color: var(--gold-border-strong);
}
body.dark-mode .notification-modal .modal-notif-header h3 {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
body.dark-mode .notification-modal .close-modal-icon {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold-border);
    color: #94a3b8;
}
body.dark-mode .notification-modal .modal-banner {
    background: linear-gradient(115deg, rgba(212,175,55,0.12), rgba(0,0,0,0.2));
    border-color: var(--gold-border);
}
body.dark-mode .notification-modal .notif-description {
    background: rgba(0, 0, 0, 0.3);
    color: #cbd5e1;
}
body.dark-mode .notification-modal .checkbox-dontshow {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--gold-border);
}
body.dark-mode .notification-modal .checkbox-dontshow label {
    color: #94a3b8;
}
body.dark-mode .notification-modal .btn-modal-outline {
    border-color: #475569;
    color: #e2e8f0;
}
body.dark-mode .notification-modal .btn-modal-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}
body.dark-mode .notification-modal .btn-modal-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0e27;
}
body.dark-mode .notification-modal .modal-footer-note {
    border-top-color: var(--gold-border);
    color: #94a3b8;
}


/* ریسپانسیو مودال اطلاعیه */
@media (max-width: 600px) {
    .notification-modal {
        max-width: 94%;
        border-radius: 30px;
    }
    .modal-notif-header {
        padding: 1rem 1.2rem 0.3rem 1.2rem;
    }
    .modal-notif-header h3 {
        font-size: 1.2rem;
    }
    .modal-banner {
        margin: 0.8rem 1.2rem;
        flex-direction: column;
        text-align: center;
    }
    .modal-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .checkbox-dontshow {
        justify-content: center;
    }
    .button-group-modal {
        justify-content: center;
    }
}

/* ============================================
   ریسپانسیو برای بخش‌های جدید
   ============================================ */
@media (max-width: 768px) {
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .news-grid-modern {
        grid-template-columns: 1fr;
    }
    .activity-feed-container {
        padding: 0 16px;
    }
}

/* ============================================
   TERMINAL CONSOLE - ACTIVITY FEED (FINAL)
   طراحی شیشه‌ای، ریسپانسیو، پشتیبانی کامل از دو تم
   ============================================ */

/* ----- متغیرهای اصلی ----- */
:root {
    --terminal-gold: #d4af37;
    --terminal-gold-glow: rgba(212, 175, 55, 0.4);
    --terminal-success: #10b981;
    --terminal-danger: #f87171;
    --terminal-warning: #fbbf24;
    --terminal-info: #60a5fa;
}

/* ----- بخش اصلی ----- */
.activity-feed-section {
    padding: 60px 0;
    position: relative;
}

/* ----- حالت پیش‌فرض (ترمینال سیاه در لایت مود) ----- */
.terminal-console {
    max-width: 1100px;
    margin: 0 auto;
    background: #0a0c10;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.25);
    font-family: 'Vazirmatn', 'Inter', system-ui, sans-serif;
}

/* هدر */
.terminal-console__header {
    background: rgba(10, 12, 22, 0.85);
    backdrop-filter: blur(12px);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-console__dots {
    display: flex;
    gap: 10px;
}
.terminal-console__dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    transition: 0.2s;
    cursor: pointer;
}
.terminal-console__dot--red { background: #ff5f56; }
.terminal-console__dot--yellow { background: #ffbd2e; }
.terminal-console__dot--green { background: #27c93f; }

.terminal-console__title {
    font-size: 0.8rem;
    font-weight: 500;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 5px 16px;
    border-radius: 40px;
}
.terminal-console__title i { color: var(--terminal-gold); }

.terminal-console__clear {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    cursor: pointer;
    color: #94a3b8;
    font-size: 1rem;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.terminal-console__clear:hover {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    transform: scale(1.05);
}

/* بدنه */
.terminal-console__body {
    background: #0a0c10;
    padding: 16px 0;
    height: 500px;
    overflow-y: auto;
    font-size: 0.85rem;
    line-height: 1.55;
    scroll-behavior: smooth;
    direction: rtl;
}

/* اسکرول بار طلایی */
.terminal-console__body::-webkit-scrollbar {
    width: 6px;
}
.terminal-console__body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}
.terminal-console__body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--terminal-gold), #b8860b);
    border-radius: 10px;
}

/* خطوط لاگ */
.terminal-log {
    display: grid;
    grid-template-columns: auto 32px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
    animation: slideInLog 0.25s ease-out;
    direction: rtl;
}
@keyframes slideInLog {
    from { opacity: 0; transform: translateX(15px); }
    to { opacity: 1; transform: translateX(0); }
}
.terminal-log:hover {
    background: rgba(212, 175, 55, 0.08);
    border-bottom-color: rgba(212, 175, 55, 0.4);
}

/* پرامپت */
.terminal-log__prompt {
    color: #6ee7b7;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: monospace;
}
.terminal-log:hover .terminal-log__prompt {
    color: var(--terminal-gold);
}

/* آیکون شیشه‌ای */
.terminal-log__icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.terminal-log:hover .terminal-log__icon {
    background: var(--terminal-gold);
    transform: scale(1.1);
    box-shadow: 0 0 12px var(--terminal-gold-glow);
}

/* رنگ آیکون‌ها در حالت پیش‌فرض (ترمینال سیاه) – روشن */
.terminal-log__icon i {
    color: #e2e8f0;
}
.terminal-log--success .terminal-log__icon i { color: #34d399; }
.terminal-log--danger .terminal-log__icon i { color: #f87171; }
.terminal-log--warning .terminal-log__icon i { color: #fbbf24; }
.terminal-log--info .terminal-log__icon i { color: #60a5fa; }
.terminal-log--primary .terminal-log__icon i { color: #fbbf24; }

/* متن لاگ */
.terminal-log__text {
    font-size: 0.85rem;
    font-family: 'Vazirmatn', monospace;
    color: #e2e8f0;
    word-break: break-word;
    text-align: right;
    padding-right: 4px;
}
.terminal-log:hover .terminal-log__text {
    color: white;
}

/* زمان */
.terminal-log__time {
    color: #7e8a98;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 12px;
    border-radius: 40px;
    white-space: nowrap;
    direction: ltr;
    transition: 0.2s;
}
.terminal-log:hover .terminal-log__time {
    background: var(--terminal-gold);
    color: #0f172a;
    font-weight: 600;
    box-shadow: 0 0 10px var(--terminal-gold-glow);
}

/* رنگ‌بندی متن در حالت پیش‌فرض */
.terminal-log--success .terminal-log__text,
.terminal-log--success .terminal-log__prompt { color: #34d399; }
.terminal-log--danger .terminal-log__text,
.terminal-log--danger .terminal-log__prompt { color: #f87171; }
.terminal-log--warning .terminal-log__text,
.terminal-log--warning .terminal-log__prompt { color: #fbbf24; }
.terminal-log--info .terminal-log__text,
.terminal-log--info .terminal-log__prompt { color: #60a5fa; }

/* فوتر */
.terminal-console__footer {
    background: rgba(10, 12, 22, 0.75);
    padding: 10px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.7rem;
    font-family: monospace;
    color: #5b6e8c;
    text-align: center;
}

/* ============================================
   تم تاریک (body.dark-mode) – ترمینال سفید/روشن
   ============================================ */
body.dark-mode .terminal-console {
    background: #f8fafc;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(212, 175, 55, 0.5);
}
body.dark-mode .terminal-console__header {
    background: rgba(240, 245, 250, 0.85);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}
body.dark-mode .terminal-console__title {
    color: #1e293b;
    background: rgba(0, 0, 0, 0.05);
}
body.dark-mode .terminal-console__clear {
    background: rgba(0, 0, 0, 0.06);
    color: #475569;
}
body.dark-mode .terminal-console__clear:hover {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
}
body.dark-mode .terminal-console__body {
    background: #f8fafc;
}
body.dark-mode .terminal-log {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}
body.dark-mode .terminal-log:hover {
    background: rgba(212, 175, 55, 0.1);
    border-bottom-color: var(--terminal-gold);
}
body.dark-mode .terminal-log__prompt {
    color: #059669;
}
body.dark-mode .terminal-log:hover .terminal-log__prompt {
    color: #b45309;
}
body.dark-mode .terminal-log__icon {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}
body.dark-mode .terminal-log:hover .terminal-log__icon {
    background: var(--terminal-gold);
}
/* آیکون‌ها در حالت dark-mode (ترمینال سفید) – تیره */
body.dark-mode .terminal-log__icon i {
    color: #0f172a;
}
body.dark-mode .terminal-log--success .terminal-log__icon i { color: #059669; }
body.dark-mode .terminal-log--danger .terminal-log__icon i { color: #dc2626; }
body.dark-mode .terminal-log--warning .terminal-log__icon i { color: #d97706; }
body.dark-mode .terminal-log--info .terminal-log__icon i { color: #2563eb; }
body.dark-mode .terminal-log--primary .terminal-log__icon i { color: #d97706; }

body.dark-mode .terminal-log__text {
    color: #0f172a;
}
body.dark-mode .terminal-log:hover .terminal-log__text {
    color: #000000;
}
body.dark-mode .terminal-log__time {
    background: rgba(0, 0, 0, 0.08);
    color: #475569;
}
body.dark-mode .terminal-log:hover .terminal-log__time {
    background: var(--terminal-gold);
    color: #0f172a;
}
/* رنگ‌بندی متن در dark-mode */
body.dark-mode .terminal-log--success .terminal-log__text,
body.dark-mode .terminal-log--success .terminal-log__prompt { color: #059669; }
body.dark-mode .terminal-log--danger .terminal-log__text,
body.dark-mode .terminal-log--danger .terminal-log__prompt { color: #dc2626; }
body.dark-mode .terminal-log--warning .terminal-log__text,
body.dark-mode .terminal-log--warning .terminal-log__prompt { color: #d97706; }
body.dark-mode .terminal-log--info .terminal-log__text,
body.dark-mode .terminal-log--info .terminal-log__prompt { color: #2563eb; }

body.dark-mode .terminal-console__footer {
    background: rgba(240, 245, 250, 0.8);
    border-top-color: rgba(0, 0, 0, 0.05);
    color: #64748b;
}
body.dark-mode .terminal-console__body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.06);
}
body.dark-mode .terminal-console__body::-webkit-scrollbar-thumb {
    background: var(--terminal-gold);
}

/* ============================================
   ریسپانسیو
   ============================================ */
@media (max-width: 768px) {
    .terminal-console__body {
        height: 380px;
    }
    .terminal-log {
        grid-template-columns: auto 28px 1fr auto;
        gap: 8px;
        padding: 8px 16px;
    }
    .terminal-log__icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    .terminal-log__text {
        font-size: 0.8rem;
    }
    .terminal-log__prompt,
    .terminal-log__time {
        font-size: 0.75rem;
    }
    .terminal-log__time {
        padding: 2px 8px;
    }
}

@media (max-width: 480px) {
    .terminal-console__body {
        height: 320px;
    }
    .terminal-log {
        grid-template-columns: auto 24px 1fr auto;
        gap: 6px;
        padding: 6px 12px;
    }
    .terminal-log__time {
        white-space: normal;
    }
}

/* ============================================
   بهبودهای هدر (افکت‌های جدید + کارایی)
   ============================================ */

/* کاهش مصرف پردازنده در مگامنو و دراپ‌داون */
.mega-wrapper, .dropdown {
    backdrop-filter: blur(12px) !important; /* قبلاً 30px بود */
    will-change: transform, opacity;
}

/* افکت درخشش (shine) روی آیکون برند */
.brand-icon {
    position: relative;
    overflow: hidden;
}
.brand-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: brandShine 4s ease-in-out infinite;
}
@keyframes brandShine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

/* افکت glow روی hover لینک‌های ناوبری */
.nav-link::after {
    content: '';
    position: absolute;
    inset: 5px 10px;
    background: radial-gradient(circle, rgba(212,175,55,0.15), transparent 70%);
    border-radius: 20px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    z-index: -1;
}
.nav-link:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* بهبود ریسپانسیو برای دکمه‌های هدر در موبایل خیلی کوچک */
@media (max-width: 480px) {
    .header-actions .btn {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
    .online-badge {
        padding: 4px 8px;
        font-size: 0.7rem;
        gap: 4px;
    }
    .online-badge .pulse {
        width: 6px;
        height: 6px;
    }
    .action-btns {
        gap: 4px;
    }
}

/* اطمینان از نمایش صحیح سایدبار در موبایل */
.mobile-sidebar {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
}

/* ============================================
   بهبود استایل هدر - نسخه مدرن و شیک
   ============================================ */

/* ---- متغیرهای مخصوص هدر (هماهنگ با تم) ---- */
:root {
  --header-glow: 0 0 15px rgba(212, 175, 55, 0.3);
  --header-transition: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

body.dark-mode {
  --header-glow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* ---- هدر اصلی - شیشه‌ای با درخشش ظریف ---- */
.main-header {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--header-transition);
}

.main-header.scrolled {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(200%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

body.dark-mode .main-header.scrolled {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* ---- برند (لوگو + متن) با افکت نئون طلایی ---- */
.brand-icon {
  background: linear-gradient(145deg, var(--gold), var(--gold-dark));
  box-shadow: 0 8px 20px var(--gold-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.brand-link:hover .brand-icon {
  transform: translateY(-3px) rotate(-2deg);
  box-shadow: 0 12px 28px var(--gold-glow);
}

.brand-title {
  background: linear-gradient(135deg, var(--text-main), var(--gold));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 900;
  letter-spacing: -0.5px;
}

body.dark-mode .brand-title {
  background: linear-gradient(135deg, #fff, var(--gold-light));
  background-clip: text;
  -webkit-background-clip: text;
}

.brand-sub {
  color: var(--gold);
  opacity: 0.9;
  font-weight: 700;
}

/* ---- لینک‌های ناوبری با زیرخط جذاب و هاور روان ---- */
.nav-link {
  font-weight: 600;
  letter-spacing: -0.3px;
  transition: color 0.2s, transform 0.2s;
}

.nav-link:hover {
  transform: translateY(-2px);
}

.nav-link::before {
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  box-shadow: 0 0 8px var(--gold-glow);
  border-radius: 2px;
}

.nav-link.active {
  color: var(--gold);
  text-shadow: 0 0 6px var(--gold-glow);
}

/* ---- مگامنو و دراپ‌داون - کد مدرن تر با انیمیشن نرم ---- */
.mega-wrapper,
.dropdown {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top: 2px solid var(--gold);
  border-radius: 20px;
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(212,175,55,0.1) inset;
  transform-origin: top center;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.95, 0.4, 1.05), visibility 0.2s;
}

.has-mega.active .mega-wrapper,
.has-drop.active .dropdown {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* کارت‌های مگامنو با افکت شیشه‌ای */
.mega-links a {
  background: rgba(255,255,255,0.02);
  border-radius: 14px;
  transition: all 0.2s;
}

.mega-links a:hover {
  background: var(--gold-dim);
  transform: translateX(-6px) scale(1.02);
  border-color: var(--gold);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.featured-card {
  background: linear-gradient(145deg, rgba(212,175,55,0.08), rgba(0,0,0,0.2));
  border: 1px solid var(--gold-border);
  border-radius: 24px;
}

.featured-card:hover {
  background: linear-gradient(145deg, rgba(212,175,55,0.15), rgba(0,0,0,0.25));
}

/* دکمه‌های هدر - براق تر و با سایه */
.btn-gold, .btn-primary {
  background: linear-gradient(105deg, var(--gold), var(--gold-dark));
  border: none;
  box-shadow: 0 4px 12px rgba(212,175,55,0.4);
  transition: all 0.2s;
}

.btn-gold:hover, .btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 22px rgba(212,175,55,0.5);
}

.btn-outline {
  border-width: 1.5px;
  backdrop-filter: blur(4px);
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ---- دکمه همبرگر موبایل - خفن تر ---- */
.burger-menu span {
  background: var(--text-main);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: all 0.25s;
}

.burger-menu.active span {
  background: var(--gold);
}

/* ---- سایدبار موبایل - شیشه‌ای مدرن ---- */
.mobile-sidebar {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  border-left: 1px solid var(--gold-border);
  box-shadow: -8px 0 32px rgba(0,0,0,0.2);
}

.m-link {
  font-weight: 500;
  border-radius: 16px;
  transition: all 0.2s;
}

.m-link.active, .m-link:hover {
  background: var(--gold-dim);
  transform: translateX(-4px);
}

/* ---- شمارنده آنلاین - با افکت نبض و شیشه‌ای ---- */
.online-badge {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  backdrop-filter: blur(4px);
  transition: all 0.2s;
}

.online-badge:hover {
  background: rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
  border-color: var(--success);
}

.pulse {
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseOnline 1.8s infinite;
}

@keyframes pulseOnline {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ---- ریسپانسیو ویژه برای هدر در موبایل ---- */
@media (max-width: 768px) {
  .main-header {
    backdrop-filter: blur(12px);
  }
  .brand-title {
    font-size: 0.9rem;
  }
  .brand-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .online-badge {
    padding: 4px 10px;
    font-size: 0.7rem;
  }
  .btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}

/* ---- انیمیشن ورود ملایم برای منوها (اختیاری) ---- */
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mega-wrapper.active,
.dropdown.active {
  animation: fadeSlideDown 0.2s ease-out;
}

.m-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.m-accordion.open .m-accordion-content {
    max-height: 500px; /* مقدار کافی برای نمایش محتوا */
}