﻿/* ==========================================
   layout.css - Anamorphic Studio
   استایل‌های یکپارچه اجزا + ساختار اصلی - v1.0
   ========================================== */

/* ----- متغیرهای کمکی (در صورت نیاز) ----- */
:root {
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow-glow-sm: 0 0 20px var(--color-shadow-glow);
    --shadow-glow-md: 0 0 30px var(--color-shadow-glow);
}

/* ==========================================
   ساختار اصلی صفحات (از site.css منتقل شد)
   ========================================== */
.main-content-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.page-content {
    flex: 1;
    padding-top: 120px;
    padding-bottom: 2rem;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 120px);
}

    .page-content.empty-page {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .page-content:has(+ footer) {
        min-height: calc(100vh - 120px);
    }

/* ==========================================
   1. BACKGROUND — "Void & Flare"
   ========================================== */
.cinematic-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg-primary);
    isolation: isolate;
}

/* ===== ۱. بستر مشکی عمیق ===== */
.bg-void {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(255, 184, 0, 0.03) 0%, transparent 50%), radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.025) 0%, transparent 45%), linear-gradient(180deg, #050507 0%, #08080B 35%, #0A0A0F 70%, #06060A 100%);
}

/* ===== ۲. گرید ریز ===== */
.bg-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(242, 242, 238, 0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(242, 242, 238, 0.018) 1px, transparent 1px);
    background-size: 72px 72px;
    background-position: center center;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 45%, #000 15%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 45%, #000 15%, transparent 75%);
    opacity: 0.7;
}

/* ===== ۳. Anamorphic Flare — امضای برند ===== */
.anamorphic-flare {
    position: absolute;
    top: 42%;
    left: 50%;
    width: 100vw;
    height: 2px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.flare-core {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.0) 12%, rgba(0, 212, 255, 0.25) 38%, rgba(122, 226, 255, 0.55) 50%, rgba(0, 212, 255, 0.25) 62%, rgba(0, 212, 255, 0.0) 88%, transparent 100%);
    filter: blur(0.6px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.25), 0 0 60px rgba(0, 212, 255, 0.12);
    animation: flareBreath 6s ease-in-out infinite;
}

.flare-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 55%;
    height: 180px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.10) 0%, rgba(0, 212, 255, 0.04) 35%, transparent 70%);
    filter: blur(40px);
    opacity: 0.9;
    animation: haloBreath 6s ease-in-out infinite;
}

@keyframes flareBreath {
    0%, 100% {
        opacity: 0.75;
    }

    50% {
        opacity: 1;
    }
}

@keyframes haloBreath {
    0%, 100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scaleX(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scaleX(1.1);
    }
}

/* ===== ۴. نور پروژکتور (طلایی گرم) ===== */
.projector-glow {
    position: absolute;
    top: -25%;
    right: -15%;
    width: 75%;
    height: 90vh;
    background: radial-gradient(ellipse at top right, rgba(255, 184, 0, 0.14) 0%, rgba(255, 184, 0, 0.06) 30%, rgba(255, 184, 0, 0.02) 55%, transparent 75%);
    filter: blur(70px);
    transform: rotate(-12deg);
    pointer-events: none;
    animation: projectorFlicker 8s ease-in-out infinite;
}

@keyframes projectorFlicker {
    0%, 100% {
        opacity: 0.9;
    }

    45% {
        opacity: 1;
    }

    48% {
        opacity: 0.85;
    }

    50% {
        opacity: 0.95;
    }

    52% {
        opacity: 0.88;
    }
}

/* ===== ۵. دو orb شناور ===== */
.ambient-drift {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
    will-change: transform;
}

.drift-gold {
    width: 620px;
    height: 620px;
    top: 8%;
    left: -14%;
    background: radial-gradient(circle, rgba(255, 184, 0, 0.10) 0%, rgba(255, 184, 0, 0.04) 40%, transparent 72%);
    animation: driftGold 42s ease-in-out infinite alternate;
}

.drift-cyan {
    width: 520px;
    height: 520px;
    bottom: 6%;
    right: -12%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.07) 0%, rgba(0, 212, 255, 0.03) 40%, transparent 72%);
    animation: driftCyan 52s ease-in-out infinite alternate;
}

@keyframes driftGold {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(80px, 50px, 0) scale(1.08);
    }
}

@keyframes driftCyan {
    0% {
        transform: translate3d(0, 0, 0) scale(1.05);
    }

    100% {
        transform: translate3d(-60px, -40px, 0) scale(1);
    }
}

/* ===== ۶. گرین فیلم (ثابت) ===== */
.bg-noise {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 220px 220px;
}

/* ===== ۷. Vignette ===== */
.vignette-effect {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 70% at 50% 50%, transparent 35%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
    z-index: 2;
}

/* ===== GPU ===== */
.bg-void,
.bg-grid,
.anamorphic-flare,
.projector-glow,
.ambient-drift,
.bg-noise,
.vignette-effect {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .drift-gold {
        width: 480px;
        height: 480px;
    }

    .drift-cyan {
        width: 400px;
        height: 400px;
    }

    .projector-glow {
        width: 90%;
        height: 70vh;
    }
}

@media (max-width: 768px) {
    .bg-grid {
        background-size: 56px 56px;
    }

    .drift-gold {
        width: 340px;
        height: 340px;
    }

    .drift-cyan {
        width: 280px;
        height: 280px;
    }

    .projector-glow {
        width: 100%;
        height: 60vh;
        top: -20%;
        right: -25%;
        filter: blur(50px);
    }

    .flare-halo {
        height: 120px;
    }

    .vignette-effect {
        background: radial-gradient(ellipse 100% 80% at 50% 50%, transparent 30%, rgba(0,0,0,0.55) 100%);
    }
}

@media (max-width: 480px) {
    .bg-grid {
        background-size: 44px 44px;
        opacity: 0.5;
    }

    .drift-gold {
        width: 240px;
        height: 240px;
        filter: blur(70px);
    }

    .drift-cyan {
        width: 200px;
        height: 200px;
        filter: blur(70px);
    }

    .anamorphic-flare {
        height: 1.5px;
    }

    .flare-halo {
        height: 90px;
        width: 70%;
    }
}

/* ===== Light theme adaptation ===== */
[data-theme="light"],
[data-theme="light-cool"],
[data-theme="light-rose"] {
    --bg-primary: var(--color-primary);
}

    [data-theme="light"] .bg-void,
    [data-theme="light-cool"] .bg-void,
    [data-theme="light-rose"] .bg-void {
        background: radial-gradient(ellipse at 50% 100%, rgba(179, 128, 0, 0.06) 0%, transparent 50%), radial-gradient(ellipse at 50% 0%, rgba(0, 136, 160, 0.05) 0%, transparent 45%), linear-gradient(180deg, #FBF6EE 0%, #F7F0E4 35%, #F2E8D8 70%, #FBF6EE 100%);
    }

    [data-theme="light"] .bg-grid,
    [data-theme="light-cool"] .bg-grid,
    [data-theme="light-rose"] .bg-grid {
        background-image: linear-gradient(rgba(26, 18, 6, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(26, 18, 6, 0.04) 1px, transparent 1px);
    }

    [data-theme="light"] .bg-noise,
    [data-theme="light-cool"] .bg-noise,
    [data-theme="light-rose"] .bg-noise {
        opacity: 0.03;
        mix-blend-mode: multiply;
    }

    [data-theme="light"] .projector-glow,
    [data-theme="light-cool"] .projector-glow,
    [data-theme="light-rose"] .projector-glow {
        background: radial-gradient(ellipse at top right, rgba(179, 128, 0, 0.10) 0%, rgba(179, 128, 0, 0.04) 30%, transparent 70%);
    }

    [data-theme="light"] .vignette-effect,
    [data-theme="light-cool"] .vignette-effect,
    [data-theme="light-rose"] .vignette-effect {
        background: radial-gradient(ellipse 90% 70% at 50% 50%, transparent 40%, rgba(26, 18, 6, 0.10) 100%);
    }

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .anamorphic-flare .flare-core,
    .anamorphic-flare .flare-halo,
    .projector-glow,
    .ambient-drift {
        animation: none !important;
    }
}

/* ==========================================
   2. HEADER & NAVIGATION (از _Header.cshtml)
   ========================================== */
.header-premium {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    font-family: 'Vazirmatn', 'IRANSans', 'Segoe UI', system-ui, sans-serif;
    direction: rtl;
}

.announcement-bar {
    background: var(--gradient-accent);
    color: var(--text-inverse);
    position: relative;
    z-index: 1001;
    overflow: hidden;
    transition: all 0.5s var(--transition-smooth);
}

    .announcement-bar.hidden {
        max-height: 0;
        padding: 0;
        opacity: 0;
        transform: translateY(-100%);
    }

.announcement-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.announcement-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.announcement-icon {
    font-size: 1.1rem;
    animation: pulseStar 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulseStar {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.announcement-text {
    font-weight: 500;
    font-size: 0.85rem;
}

.announcement-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.announcement-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-inverse);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all var(--transition-fast);
}

    .announcement-link:hover {
        background: rgba(255,255,255,0.25);
        transform: translateY(-1px);
    }

    .announcement-link svg {
        transition: transform var(--transition-fast);
    }

    .announcement-link:hover svg {
        transform: translateX(4px);
    }

.announcement-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--text-inverse);
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 50%;
    opacity: 0.7;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

    .announcement-close:hover {
        opacity: 1;
        background: rgba(255,255,255,0.2);
        transform: scale(1.1);
    }

.announcement-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: rgba(255,255,255,0.4);
    width: 0%;
    animation: progressBar 8s linear forwards;
}

@keyframes progressBar {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.announcement-bar.hidden .announcement-progress {
    animation: none;
    width: 0;
}

/* Navbar */
.navbar-main {
    background: var(--bg-nav);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    z-index: 1000;
}

    .navbar-main.scrolled {
        background: var(--bg-nav-blur);
        box-shadow: 0 4px 30px var(--color-shadow-md);
        border-bottom-color: transparent;
    }

        .navbar-main.scrolled .brand-logo {
            transform: scale(0.95);
        }

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 68px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

    .navbar-brand:hover {
        transform: scale(1.02);
    }

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 8px var(--color-shadow-glow));
}

.navbar-brand:hover .brand-logo {
    transform: rotate(-5deg) scale(1.05);
    filter: drop-shadow(0 4px 16px var(--color-shadow-glow));
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.navbar-brand:hover .brand-name {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tagline {
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
    cursor: pointer;
    background: transparent;
    border: none;
    font-family: inherit;
}

    .nav-link .link-text {
        position: relative;
        z-index: 1;
    }

    .nav-link .link-indicator {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        width: 20px;
        height: 2.5px;
        background: var(--gradient-accent);
        border-radius: 9999px;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .nav-link:hover, .nav-link.active {
        color: var(--text-primary);
        background: var(--color-overlay-light);
    }

        .nav-link:hover .link-indicator, .nav-link.active .link-indicator {
            transform: translateX(-50%) scaleX(1);
        }

    .nav-link.active {
        color: var(--color-accent);
    }

        .nav-link.active .link-indicator {
            width: 30px;
            background: var(--color-accent);
        }

.dropdown-arrow {
    transition: transform var(--transition-fast);
    opacity: 0.5;
    flex-shrink: 0;
}

.nav-link:hover .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 50%;
    transform: translateX(50%) translateY(-8px);
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    min-width: 260px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px var(--color-shadow-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
    transform: translateX(50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}

    .dropdown-item::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--gradient-glow);
        opacity: 0;
        border-radius: var(--radius-md);
        transition: opacity var(--transition-fast);
    }

    .dropdown-item:hover::before {
        opacity: 1;
    }

    .dropdown-item:hover {
        transform: translateX(-4px);
        color: var(--text-primary);
    }

    .dropdown-item > div {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
    }

.dropdown-icon {
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.dropdown-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.dropdown-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
/* Notification bell (common) */
.notification-bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    flex-shrink: 0;
}

    .notification-bell:hover {
        border-color: var(--color-accent);
        color: var(--color-accent);
        transform: scale(1.05);
        box-shadow: var(--shadow-glow-sm);
    }

    .notification-bell .bell-icon {
        font-size: 1.3rem;
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        line-height: 1;
    }

    .notification-bell:hover .bell-icon {
        transform: rotate(-15deg) scale(1.1);
    }

    .notification-bell .bell-ring {
        position: absolute;
        inset: -3px;
        border-radius: 50%;
        border: 2px solid transparent;
        transition: all var(--transition-fast);
        pointer-events: none;
    }

    .notification-bell.has-notification .bell-ring {
        border-color: var(--color-accent);
        animation: ringPulse 2s ease-in-out infinite;
    }

@keyframes ringPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.notification-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: var(--color-error);
    color: var(--text-inverse);
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Inter', sans-serif;
}

    .notification-count.show {
        opacity: 1;
        transform: scale(1);
    }

    .notification-count.pulse {
        animation: countPulse 0.5s ease;
    }

@keyframes countPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* Auth buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1.1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.login-btn {
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--color-border);
}

    .login-btn:hover {
        border-color: var(--color-accent);
        color: var(--color-accent);
        transform: translateY(-2px);
        box-shadow: var(--shadow-glow-sm);
    }

.register-btn {
    color: var(--text-inverse);
    background: var(--gradient-accent);
    border: 1px solid transparent;
    box-shadow: 0 4px 16px var(--color-shadow-glow);
    position: relative;
    overflow: hidden;
}

    .register-btn::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transform: translateX(-100%);
        transition: transform 0.6s;
    }

    .register-btn:hover::before {
        transform: translateX(100%);
    }

    .register-btn:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 8px 32px var(--color-shadow-glow);
    }

    .register-btn svg {
        transition: transform var(--transition-fast);
    }

    .register-btn:hover svg {
        transform: rotate(90deg);
    }

/* User dropdown */
.user-menu-dropdown {
    position: relative;
    display: inline-block;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 1rem 0.3rem 0.8rem;
    border-radius: 9999px;
    background: var(--color-overlay-gold);
    border: 1px solid var(--color-border-accent);
    color: var(--text-primary);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

    .user-menu-trigger:hover {
        border-color: var(--color-accent);
        background: var(--color-accent-glow);
        transform: translateY(-2px);
        box-shadow: var(--shadow-glow-sm);
    }

    .user-menu-trigger .user-avatar {
        font-size: 1.1rem;
    }

    .user-menu-trigger .user-name {
        max-width: 100px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-menu-trigger .dropdown-arrow {
        transition: transform var(--transition-fast);
        opacity: 0.5;
    }

    .user-menu-trigger[aria-expanded="true"] .dropdown-arrow {
        transform: rotate(180deg);
        opacity: 1;
    }

.user-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    box-shadow: 0 20px 60px var(--color-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
}

    .user-menu-panel.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
}

    .user-menu-item:hover {
        background: var(--color-overlay-light);
        color: var(--text-primary);
    }

    .user-menu-item .menu-icon {
        font-size: 1.1rem;
    }

.user-menu-divider {
    height: 1px;
    background: var(--color-border);
    margin: 0.3rem 0;
}

.logout-item {
    color: var(--color-error);
}

    .logout-item:hover {
        background: var(--color-error-bg);
        color: var(--color-error);
    }

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    color: var(--text-secondary);
    flex-shrink: 0;
}

    .mobile-menu-btn:hover {
        border-color: var(--color-accent);
        color: var(--color-accent);
        box-shadow: var(--shadow-glow-sm);
    }

    .mobile-menu-btn .menu-icon {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .mobile-menu-btn .bar {
        width: 18px;
        height: 2px;
        background: currentColor;
        border-radius: 9999px;
        transition: all var(--transition-fast);
    }

    .mobile-menu-btn .menu-label {
        font-size: 0.7rem;
        font-weight: 500;
    }

    .mobile-menu-btn[aria-expanded="true"] .bar:nth-child(1) {
        transform: rotate(45deg) translate(3px, 3px);
    }

    .mobile-menu-btn[aria-expanded="true"] .bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-menu-btn[aria-expanded="true"] .bar:nth-child(3) {
        transform: rotate(-45deg) translate(3px, -3px);
    }

/* Mobile overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--transition-smooth);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

    .mobile-menu-overlay.open {
        opacity: 1;
        visibility: visible;
    }

.mobile-menu-container {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    max-height: 92vh;
    background: var(--bg-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -20px 60px var(--color-shadow-lg);
}

.mobile-menu-overlay.open .mobile-menu-container {
    transform: translateY(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem 0.8rem;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.mobile-brand-name {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    line-height: 1.2;
}

.mobile-brand-sub {
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

    .mobile-menu-close:hover {
        background: var(--color-overlay-light);
        color: var(--text-primary);
        transform: rotate(90deg);
    }

.mobile-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

    .mobile-nav::-webkit-scrollbar {
        width: 4px;
    }

    .mobile-nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .mobile-nav::-webkit-scrollbar-thumb {
        background: var(--color-accent);
        border-radius: 9999px;
    }

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--color-border);
    opacity: 0.6;
    transition: all var(--transition-fast);
}

    .mobile-nav-item:last-child {
        border-bottom: none;
    }

    .mobile-nav-item:hover, .mobile-nav-item.active {
        opacity: 1;
    }

        .mobile-nav-item.active .mobile-nav-link {
            color: var(--color-accent);
            background: var(--color-overlay-gold);
        }

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-fast);
}

    .mobile-nav-link:hover {
        color: var(--text-primary);
        background: var(--color-overlay-light);
    }

.mobile-nav-icon {
    font-size: 1.2rem;
    width: 28px;
    flex-shrink: 0;
    text-align: center;
}

.mobile-nav-text {
    flex: 1;
    text-align: right;
}

.sub-arrow {
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.mobile-sub-toggle.active .sub-arrow {
    transform: rotate(180deg);
}

.mobile-sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-fast);
    background: var(--color-overlay-light);
}

    .mobile-sub-menu.open {
        max-height: 300px;
    }

    .mobile-sub-menu li {
        border-top: 1px solid var(--color-border);
    }

        .mobile-sub-menu li:first-child {
            border-top: none;
        }

    .mobile-sub-menu a {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.7rem 1.5rem 0.7rem 3.5rem;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.85rem;
        transition: all var(--transition-fast);
    }

        .mobile-sub-menu a:hover {
            color: var(--text-primary);
            background: var(--color-overlay-light);
            padding-right: 4rem;
        }

.mobile-auth-section {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    flex-shrink: 0;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mobile-auth-buttons {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.mobile-auth-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 0.85rem;
}

    .mobile-auth-btn.login {
        color: var(--text-secondary);
        border: 1px solid var(--color-border);
        background: transparent;
    }

        .mobile-auth-btn.login:hover {
            border-color: var(--color-accent);
            color: var(--color-accent);
        }

    .mobile-auth-btn.register {
        color: var(--text-inverse);
        background: var(--gradient-accent);
        border: 1px solid transparent;
        box-shadow: 0 4px 16px var(--color-shadow-glow);
        position: relative;
        overflow: hidden;
    }

        .mobile-auth-btn.register::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
            transform: translateX(-100%);
            transition: transform 0.6s;
        }

        .mobile-auth-btn.register:hover::before {
            transform: translateX(100%);
        }

        .mobile-auth-btn.register:hover {
            transform: scale(1.02);
            box-shadow: 0 8px 32px var(--color-shadow-glow);
        }

        .mobile-auth-btn.register svg {
            transition: transform var(--transition-fast);
        }

        .mobile-auth-btn.register:hover svg {
            transform: rotate(90deg);
        }

/* Mobile user menu panel */
.mobile-user-menu .user-menu-trigger {
    width: 100%;
    justify-content: center;
    background: var(--color-overlay-gold);
    border: 1px solid var(--color-border-accent);
    padding: 0.6rem 1rem;
}

.mobile-user-menu .user-menu-panel {
    position: static;
    box-shadow: none;
    border: 1px solid var(--color-border);
    background: var(--bg-card);
    margin-top: 0.5rem;
    border-radius: var(--radius-md);
    padding: 0.3rem;
    width: 100%;
    transform: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .mobile-user-menu .user-menu-panel.open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

/* Header responsive */
@media (max-width: 1024px) {
    .nav-link {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }

    .navbar-container {
        padding: 0.6rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .announcement-content {
        padding: 0.5rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
    }

    .announcement-left {
        flex-wrap: wrap;
        justify-content: center;
    }

    .announcement-text {
        font-size: 0.75rem;
    }

    .announcement-right {
        gap: 0.5rem;
    }

    .announcement-link {
        font-size: 0.7rem;
        padding: 0.15rem 0.6rem;
    }

    .announcement-close {
        width: 24px;
        height: 24px;
    }

        .announcement-close svg {
            width: 14px;
            height: 14px;
        }

    .nav-links, .desktop-auth {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .navbar-container {
        padding: 0.5rem 1rem;
        min-height: 60px;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .brand-tagline {
        font-size: 0.5rem;
        letter-spacing: 2px;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
    }

    .notification-bell {
        width: 38px;
        height: 38px;
    }

        .notification-bell .bell-icon {
            font-size: 1.1rem;
        }

    .notification-count {
        min-width: 18px;
        height: 18px;
        font-size: 0.5rem;
        top: -3px;
        right: -3px;
    }

    .mobile-menu-container {
        border-radius: 20px 20px 0 0;
        max-height: 95vh;
    }

    .mobile-menu-header {
        padding: 1rem 1.2rem 0.6rem;
    }

    .mobile-nav-link {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .mobile-sub-menu a {
        padding: 0.6rem 1.2rem 0.6rem 3rem;
        font-size: 0.8rem;
    }

    .mobile-auth-section {
        padding: 0.8rem 1.2rem;
        flex-direction: column;
    }

    .mobile-auth-buttons {
        flex-direction: row;
    }

    .user-menu-trigger .user-name {
        max-width: 60px;
    }

    .user-menu-panel {
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .brand-text .brand-tagline {
        display: none;
    }

    .brand-name {
        font-size: 0.85rem;
    }

    .brand-logo {
        width: 32px;
        height: 32px;
    }

    .navbar-container {
        padding: 0.4rem 0.75rem;
        min-height: 54px;
    }

    .mobile-menu-btn {
        padding: 0.3rem 0.6rem;
    }

        .mobile-menu-btn .menu-label {
            font-size: 0.65rem;
        }

        .mobile-menu-btn .bar {
            width: 16px;
            height: 1.5px;
        }

    .notification-bell {
        width: 34px;
        height: 34px;
    }

        .notification-bell .bell-icon {
            font-size: 0.95rem;
        }

    .notification-count {
        min-width: 16px;
        height: 16px;
        font-size: 0.5rem;
        top: -3px;
        right: -3px;
    }

    .mobile-menu-container {
        border-radius: 16px 16px 0 0;
    }

    .mobile-brand-name {
        font-size: 0.85rem;
    }

    .mobile-nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .user-menu-trigger .user-name {
        max-width: 40px;
        font-size: 0.7rem;
    }

    .user-menu-panel {
        min-width: 160px;
    }
}

/* ==========================================
   3. FOOTER (از _Footer.cshtml)
   ========================================== */
.footer-cinematic-premium {
    position: relative;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Vazirmatn', 'IRANSans', 'Segoe UI', system-ui, sans-serif;
    direction: rtl;
    text-align: right;
    overflow: hidden;
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
    isolation: isolate;
}

.footer-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.08;
}

.glow-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--color-accent);
    top: -100px;
    right: -100px;
}

.glow-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--color-blue);
    bottom: -50px;
    left: -50px;
    opacity: 0.05;
}

.vignette-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
}

.footer-main {
    position: relative;
    z-index: 3;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.brand-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    box-shadow: 0 4px 20px var(--color-accent-glow);
    transition: all 0.3s var(--transition-smooth);
}

    .brand-icon-wrapper:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 40px var(--color-accent-glow);
    }

    .brand-icon-wrapper .brand-icon {
        font-size: 30px;
        position: relative;
        z-index: 1;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    }

.brand-ring {
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-accent);
    opacity: 0.3;
    transition: all 0.3s var(--transition-smooth);
}

.brand-icon-wrapper:hover .brand-ring {
    opacity: 0.6;
    inset: -6px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin: 0;
    line-height: 1.2;
    direction: ltr;
    text-align: right;
}

    .brand-title .brand-main {
        background: var(--gradient-accent);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        background-size: 200% 200%;
    }

.brand-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 8px;
    font-weight: 300;
    margin-top: 2px;
}

.brand-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 380px;
    margin-bottom: 1.5rem;
}

.social-section {
    max-width: 380px;
}

.social-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
    text-decoration: none;
}

    .social-link svg {
        transition: all var(--transition-fast);
    }

    .social-link:hover {
        transform: translateY(-3px);
        border-color: var(--color-accent);
        color: var(--color-accent);
        box-shadow: var(--shadow-glow-sm);
    }

    .social-link .tooltip {
        position: absolute;
        bottom: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%) scale(0.9);
        background: var(--bg-card);
        color: var(--text-primary);
        padding: 4px 12px;
        border-radius: var(--radius-sm);
        font-size: 0.7rem;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition-fast);
        border: 1px solid var(--color-border);
    }

    .social-link:hover .tooltip {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }

    .social-link.instagram:hover {
        color: #E4405F;
        border-color: #E4405F;
        box-shadow: 0 0 30px rgba(228,64,95,0.15);
    }

    .social-link.telegram:hover {
        color: #0088cc;
        border-color: #0088cc;
        box-shadow: 0 0 30px rgba(0,136,204,0.15);
    }

    .social-link.youtube:hover {
        color: #FF0000;
        border-color: #FF0000;
        box-shadow: 0 0 30px rgba(255,0,0,0.15);
    }

    .social-link.linkedin:hover {
        color: #0A66C2;
        border-color: #0A66C2;
        box-shadow: 0 0 30px rgba(10,102,194,0.15);
    }

    .social-link.aparat:hover {
        color: #E6007E;
        border-color: #E6007E;
        box-shadow: 0 0 30px rgba(230,0,126,0.15);
    }

.column-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

    .column-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 40px;
        height: 3px;
        background: var(--gradient-accent);
        border-radius: 9999px;
    }

.title-icon {
    color: var(--color-accent);
    font-size: 0.8rem;
}

.links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .links-list li {
        transition: all var(--transition-fast);
    }

        .links-list li:hover {
            transform: translateX(-4px);
        }

    .links-list a {
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 0.95rem;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        transition: all var(--transition-fast);
        padding: 4px 0;
    }

        .links-list a .link-icon {
            color: var(--color-accent);
            font-size: 1.2rem;
            font-weight: 300;
            transition: all var(--transition-fast);
        }

        .links-list a:hover {
            color: var(--color-accent);
        }

            .links-list a:hover .link-icon {
                transform: translateX(-4px);
            }

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

    .services-list li {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem 0.75rem;
        border-radius: var(--radius-sm);
        background: var(--bg-card);
        border: 1px solid transparent;
        transition: all var(--transition-fast);
        cursor: default;
    }

        .services-list li:hover {
            border-color: var(--border-accent);
            background: var(--bg-card-hover);
            transform: translateX(-4px);
            box-shadow: var(--shadow-sm);
        }

.service-badge {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.service-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.service-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.service-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: all var(--transition-fast);
    padding: 0.25rem 0;
}

    .contact-item:hover {
        transform: translateX(-4px);
    }

.contact-icon-wrapper {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--color-accent);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.contact-item:hover .contact-icon-wrapper {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow-sm);
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.contact-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    font-size: 0.85rem;
    color: var(--text-secondary);
    word-break: break-word;
}

    .contact-value.ltr {
        direction: ltr;
        text-align: right;
        font-family: 'Inter', monospace;
    }

.footer-bottom-row {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
    margin-top: 0.5rem;
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.copy-symbol {
    font-size: 0.7rem;
}

.copy-brand {
    color: var(--color-accent);
    font-weight: 600;
    transition: all var(--transition-fast);
}

    .copy-brand:hover {
        text-shadow: 0 0 20px var(--color-accent-glow);
    }

.copy-divider {
    color: var(--color-border);
    margin: 0 0.3rem;
}

.bottom-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

    .bottom-links a {
        color: var(--text-muted);
        text-decoration: none;
        transition: all var(--transition-fast);
        position: relative;
    }

        .bottom-links a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            right: 0;
            height: 1px;
            background: var(--color-accent);
            transform: scaleX(0);
            transition: transform 0.3s var(--transition-fast);
        }

        .bottom-links a:hover {
            color: var(--color-accent);
        }

            .bottom-links a:hover::after {
                transform: scaleX(1);
            }

    .bottom-links .divider {
        color: var(--color-border);
    }

.scroll-top-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

    .scroll-top-btn:hover {
        border-color: var(--color-accent);
        color: var(--color-accent);
        transform: translateY(-2px);
        box-shadow: var(--shadow-glow-sm);
    }

    .scroll-top-btn svg {
        transition: transform var(--transition-fast);
    }

    .scroll-top-btn:hover svg {
        transform: translateY(-3px);
    }

.footer-credit {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

    .footer-credit:hover {
        opacity: 1;
    }

.heart-icon {
    color: var(--color-error);
    display: inline-block;
    margin: 0 2px;
}

.tech-stack {
    color: var(--color-accent);
    font-weight: 500;
}

.tech-dot {
    margin: 0 0.3rem;
}

/* Footer responsive */
@media (max-width: 1200px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 2rem 1rem 1.5rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 2rem;
    }

    .brand-description {
        max-width: 100%;
        text-align: center;
    }

    .social-section {
        max-width: 100%;
    }

    .social-links {
        justify-content: center;
    }

    .d-none.d-md-block {
        display: none !important;
    }

    .bottom-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }

    .copyright {
        flex-wrap: wrap;
        justify-content: center;
    }

    .d-none.d-sm-flex {
        display: none !important;
    }

    .footer-credit {
        font-size: 0.7rem;
    }

    .column-title::after {
        right: 50%;
        transform: translateX(50%);
    }

    .column-title {
        justify-content: center;
    }

    .links-list li:hover {
        transform: none;
    }

    .links-list a {
        justify-content: center;
    }

    .services-list li {
        justify-content: center;
    }

        .services-list li:hover {
            transform: none;
        }

    .contact-item {
        justify-content: center;
    }

        .contact-item:hover {
            transform: none;
        }

    .scroll-top-btn {
        width: 100%;
        justify-content: center;
    }

    .brand-wrapper {
        justify-content: center;
    }

    .brand-title {
        text-align: center;
        direction: rtl;
    }

    .brand-description {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 1.6rem;
    }

    .brand-icon-wrapper {
        width: 50px;
        height: 50px;
    }

        .brand-icon-wrapper .brand-icon {
            font-size: 24px;
        }

    .social-link {
        width: 38px;
        height: 38px;
    }

        .social-link svg {
            width: 16px;
            height: 16px;
        }

    .glow-orb-1 {
        width: 150px;
        height: 150px;
        top: -50px;
        right: -50px;
    }

    .glow-orb-2 {
        width: 120px;
        height: 120px;
        bottom: -30px;
        left: -30px;
    }
}

/* ==========================================
   4. LOADER (از _Loader.cshtml)
   ========================================== */
.cinema-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    direction: rtl;
    transition: all 0.6s cubic-bezier(0.77, 0, 0.18, 1);
}

.cinema-loader-inner {
    position: relative;
    text-align: center;
    color: var(--text-primary);
    z-index: 2;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
}

.loader-logo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: logoPulse 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 30px var(--color-shadow-glow));
    position: relative;
    z-index: 2;
    will-change: transform;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
    }
}

.loader-logo-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    opacity: 0.15;
    animation: ringSpin 6s linear infinite;
    z-index: 1;
    will-change: transform;
}

    .loader-logo-ring::before {
        content: '';
        position: absolute;
        inset: -4px;
        border-radius: 50%;
        border: 2px solid transparent;
        border-top-color: var(--color-accent);
        animation: ringSpin 2s linear infinite;
        will-change: transform;
    }

    .loader-logo-ring::after {
        content: '';
        position: absolute;
        inset: 4px;
        border-radius: 50%;
        border: 1px solid transparent;
        border-bottom-color: var(--color-accent-light);
        opacity: 0.5;
        animation: ringSpin 3s linear infinite reverse;
        will-change: transform;
    }

@keyframes ringSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-logo-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    opacity: 0.3;
    animation: glowPulse 2.5s ease-in-out infinite;
    z-index: 0;
    filter: blur(20px);
    will-change: opacity, transform;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.9);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.loader-title {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s ease-in-out infinite;
    background-size: 200% 200%;
    will-change: background-position;
}

@keyframes textShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.loader-sub {
    font-size: 0.7rem;
    letter-spacing: 6px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 1.5rem;
    animation: subFade 2s ease-in-out infinite;
    will-change: opacity;
}

@keyframes subFade {
    0%, 100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.loader-progress {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 0.75rem;
    height: 2.5px;
    background: var(--color-border);
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-accent);
    border-radius: 9999px;
    transition: width 0.3s var(--transition-smooth);
    position: relative;
}

    .loader-progress-bar::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        width: 30px;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        animation: shimmer 1.2s ease-in-out infinite;
        will-change: transform;
    }

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.loader-percentage {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    transition: color var(--transition-fast);
}

.loader-grain {
    position: absolute;
    inset: 0;
    opacity: 0.02;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    animation: grain 0.5s steps(2) infinite;
    z-index: 1;
    will-change: transform;
}

@keyframes grain {
    0%, 100% {
        transform: translate(0,0);
    }

    10% {
        transform: translate(-5%, -10%);
    }

    20% {
        transform: translate(-15%, 5%);
    }

    30% {
        transform: translate(7%, -25%);
    }

    40% {
        transform: translate(-5%, 25%);
    }

    50% {
        transform: translate(-15%, 10%);
    }

    60% {
        transform: translate(15%, 0%);
    }

    70% {
        transform: translate(0%, 15%);
    }

    80% {
        transform: translate(3%, 35%);
    }

    90% {
        transform: translate(-10%, 10%);
    }
}

.loader-flare {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    animation: flarePulse 3.5s ease-in-out infinite;
    will-change: opacity, transform;
}

@keyframes flarePulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.15;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }
}

.cinema-loader.cinematic-exit {
    animation: curtainClose 0.8s cubic-bezier(0.77, 0, 0.18, 1) forwards;
    will-change: clip-path, opacity;
}

@keyframes curtainClose {
    0% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }

    60% {
        clip-path: inset(40% 0 40% 0);
        opacity: 1;
    }

    100% {
        clip-path: inset(50% 0 50% 0);
        opacity: 0;
        visibility: hidden;
    }
}

.cinema-loader.cinematic-exit .loader-flare {
    animation: flareFlash 0.5s ease forwards;
}

@keyframes flareFlash {
    0% {
        opacity: 0.15;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.5);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

.cinema-loader.cinematic-exit .loader-logo-img {
    animation: logoExit 0.5s ease forwards;
}

@keyframes logoExit {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.5);
        opacity: 0;
    }
}

/* Loader responsive */
@media (max-width: 768px) {
    .loader-logo-wrapper {
        width: 90px;
        height: 90px;
    }

    .loader-title {
        font-size: 1.4rem;
        letter-spacing: 3px;
    }

    .loader-sub {
        font-size: 0.6rem;
        letter-spacing: 4px;
    }

    .loader-flare {
        width: 250px;
        height: 250px;
    }

    .loader-logo-glow {
        inset: -20px;
    }
}

@media (max-width: 480px) {
    .loader-logo-wrapper {
        width: 72px;
        height: 72px;
    }

    .loader-title {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .loader-sub {
        font-size: 0.5rem;
        letter-spacing: 3px;
    }

    .loader-progress {
        max-width: 200px;
    }

    .loader-flare {
        width: 180px;
        height: 180px;
    }

    .loader-logo-glow {
        inset: -15px;
    }

    .loader-logo-ring {
        inset: -6px;
    }
}

/* ==========================================
   5. SIDE PANEL (از _SidePanel.cshtml)
   ========================================== */
.cinema-side-panel {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 500;
    display: flex;
    align-items: flex-start;
    height: 100vh;
    pointer-events: none;
}

    .cinema-side-panel .panel-toggle {
        pointer-events: auto;
    }

.panel-toggle {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.8rem 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-left: none;
    border-radius: 0 14px 14px 0;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
    font-family: inherit;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: var(--shadow-md);
    min-width: 44px;
    min-height: 80px;
    will-change: transform, box-shadow, border-color;
    margin-top: 70vh;
    pointer-events: auto;
}

    .panel-toggle:hover {
        border-color: var(--color-accent);
        color: var(--color-accent);
        transform: translateX(4px) scale(1.02);
        box-shadow: 0 0 30px var(--color-shadow-glow);
    }

    .panel-toggle .toggle-icon {
        font-size: 1.8rem;
        transition: transform 0.5s var(--transition-smooth);
    }

    .panel-toggle:hover .toggle-icon {
        transform: rotate(60deg) scale(1.1);
    }

    .panel-toggle .toggle-ring {
        position: absolute;
        inset: -2px;
        border-radius: 0 16px 16px 0;
        border: 2px solid transparent;
        border-right-color: var(--color-accent);
        opacity: 0;
        transition: all 0.4s ease;
    }

    .panel-toggle:hover .toggle-ring {
        opacity: 0.3;
        inset: -3px;
    }

    .panel-toggle .toggle-dot {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 7px;
        height: 7px;
        background: var(--color-success);
        border-radius: 50%;
        box-shadow: 0 0 10px var(--color-success);
        animation: dotPulse 2s ease-in-out infinite;
    }

@keyframes dotPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

.panel-toggle.active {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateX(8px);
    box-shadow: 0 0 30px var(--color-shadow-glow);
}

    .panel-toggle.active .toggle-icon {
        transform: rotate(90deg);
    }

    .panel-toggle.active .toggle-dot {
        background: var(--color-accent);
        box-shadow: 0 0 15px var(--color-accent-glow);
    }

.panel-content {
    position: fixed;
    left: 0;
    width: 420px;
    max-width: 92vw;
    height: auto;
    max-height: 95vh;
    min-height: 200px;
    background: var(--bg-nav);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-right: 1px solid var(--color-border);
    transform: translateY(-50%) translateX(-105%);
    transition: transform 0.6s var(--transition-smooth);
    box-shadow: 6px 0 50px var(--color-shadow-lg);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    top: 50%;
    pointer-events: auto;
    border-radius: 0 16px 16px 0;
    will-change: transform;
}

    .panel-content.open {
        transform: translateY(-50%) translateX(0);
    }

    .panel-content.minimized .panel-body {
        max-height: 0;
        padding: 0;
        opacity: 0;
        overflow: hidden;
        flex: 0;
    }

    .panel-content.minimized .panel-footer {
        display: none;
    }

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
    background: var(--bg-nav-blur);
    min-height: 60px;
    border-radius: 0 16px 0 0;
}

.panel-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.panel-brand-icon {
    font-size: 1.4rem;
}

.panel-brand-name {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.panel-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-close {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

    .panel-close:hover {
        border-color: var(--color-accent);
        color: var(--color-accent);
        transform: rotate(90deg);
    }

.panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}

    .panel-body::-webkit-scrollbar {
        width: 4px;
    }

    .panel-body::-webkit-scrollbar-track {
        background: transparent;
    }

    .panel-body::-webkit-scrollbar-thumb {
        background: var(--color-accent);
        border-radius: 9999px;
    }

.panel-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    background: var(--color-overlay-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

    .panel-section:hover {
        border-color: var(--color-border-hover);
    }

.panel-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-icon {
    font-size: 0.95rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.panel-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    flex: 1;
}

.section-badge {
    font-size: 0.55rem;
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    background: var(--color-accent-glow);
    color: var(--color-accent);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.theme-options {
    display: flex;
    gap: 0.5rem;
}

.theme-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem 0.3rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    min-height: 52px;
}

    .theme-option .option-icon {
        font-size: 1.2rem;
        transition: transform var(--transition-fast);
    }

    .theme-option .option-label {
        font-size: 0.6rem;
        font-weight: 500;
    }

    .theme-option:hover {
        border-color: var(--color-accent);
        color: var(--color-accent);
        transform: translateY(-2px);
    }

        .theme-option:hover .option-icon {
            transform: scale(1.1) rotate(-10deg);
        }

    .theme-option.active {
        border-color: var(--color-accent);
        background: var(--color-accent-glow);
        color: var(--color-accent);
        box-shadow: 0 0 20px var(--color-shadow-glow);
    }

        .theme-option.active .option-icon {
            transform: scale(1.1);
        }

.music-section {
    background: var(--color-overlay-gold);
    border-color: var(--color-border-accent);
}

    .music-section:hover {
        border-color: var(--color-accent);
    }

.music-player {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    direction: ltr;
    text-align: left;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    direction: ltr;
}

.player-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

    .player-btn:hover {
        border-color: var(--color-accent);
        color: var(--color-accent);
        transform: scale(1.1);
    }

    .player-btn .play-icon {
        font-size: 0.9rem;
        transition: transform var(--transition-fast);
    }

    .player-btn.playing .play-icon {
        transform: scale(1.2);
    }

    .player-btn.playing {
        border-color: var(--color-accent);
        color: var(--color-accent);
        box-shadow: 0 0 20px var(--color-shadow-glow);
    }

.player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    direction: ltr;
    text-align: left;
}

.player-track {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: ltr;
    text-align: left;
}

.player-artist {
    font-size: 0.6rem;
    color: var(--text-muted);
    direction: ltr;
    text-align: left;
}

.player-volume-wrapper {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    direction: ltr;
}

.volume-btn {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
}

.volume-slider {
    width: 60px;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--color-border);
    border-radius: 9999px;
    outline: none;
    transition: all var(--transition-fast);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%) scaleX(0);
}

    .volume-slider.show {
        opacity: 1;
        transform: translateY(-50%) scaleX(1);
        position: relative;
        left: auto;
        top: auto;
        transform: scaleX(1);
    }

    .volume-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--gradient-accent);
        cursor: pointer;
    }

    .volume-slider::-moz-range-thumb {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--gradient-accent);
        cursor: pointer;
        border: none;
    }

.player-progress {
    height: 4px;
    background: var(--color-border);
    border-radius: 9999px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: height var(--transition-fast);
    direction: ltr;
}

    .player-progress:hover {
        height: 6px;
    }

.player-progress-bar {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 9999px;
    transition: width 0.1s linear;
    position: relative;
}

    .player-progress-bar::after {
        content: '';
        position: absolute;
        right: 0;
        top: -3px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--color-accent);
        opacity: 0;
        transition: opacity var(--transition-fast);
        box-shadow: 0 0 20px var(--color-shadow-glow);
    }

.player-progress:hover .player-progress-bar::after {
    opacity: 1;
}

.player-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    direction: ltr;
}

    .player-time span {
        direction: ltr;
        display: inline-block;
    }

.panel-footer {
    padding: 0.5rem 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.6rem;
    color: var(--text-muted);
    flex-shrink: 0;
    background: var(--bg-nav-blur);
    min-height: 40px;
    border-radius: 0 0 16px 0;
}

.footer-divider {
    opacity: 0.3;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-dot {
    width: 5px;
    height: 5px;
    background: var(--color-success);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

/* Side panel responsive */
@media (max-width: 768px) {
    .panel-content {
        width: 380px;
        max-width: 92vw;
        max-height: 95vh;
    }

    .panel-toggle {
        padding: 0.6rem 0.4rem;
        min-width: 38px;
        min-height: 70px;
        margin-top: 65vh;
    }

        .panel-toggle .toggle-icon {
            font-size: 1.5rem;
        }

    .panel-body {
        padding: 1rem;
        gap: 0.8rem;
    }

    .panel-section {
        padding: 0.6rem 0.8rem;
    }

    .volume-slider {
        width: 50px;
    }

        .volume-slider.show {
            width: 50px;
        }
}

@media (max-width: 480px) {
    .panel-content {
        width: 100vw;
        max-width: 100vw;
        border-radius: 0;
        max-height: 98vh;
    }

    .panel-header {
        padding: 0.8rem 1rem;
        border-radius: 0;
    }

    .panel-body {
        padding: 0.8rem;
        gap: 0.7rem;
    }

    .panel-section {
        padding: 0.5rem 0.6rem;
    }

    .theme-options {
        flex-direction: row;
    }

    .panel-footer {
        padding: 0.4rem 1rem;
        flex-wrap: wrap;
        gap: 0.3rem;
        font-size: 0.55rem;
        border-radius: 0;
    }

    .volume-slider {
        width: 40px;
    }

        .volume-slider.show {
            width: 40px;
        }

    .player-controls {
        gap: 0.4rem;
    }

    .player-btn {
        width: 34px;
        height: 34px;
    }

    .panel-toggle {
        min-height: 60px;
        margin-top: 60vh;
    }
}

/* ==========================================
   6. NOTIFICATION CENTER (از _NotificationCenter.cshtml)
   ========================================== */
.notification-dropdown {
    position: fixed;
    top: 80px;
    left: 20px;
    width: 420px;
    max-width: 92vw;
    max-height: 80vh;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px var(--color-shadow-lg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transform: translateY(-10px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s var(--transition-smooth);
    z-index: 1500;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
}

    .notification-dropdown.open {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
    background: var(--bg-nav-blur);
}

.notification-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Cinzel', 'Georgia', serif;
}

.notification-mark-all {
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

    .notification-mark-all:hover {
        border-color: var(--color-accent);
        color: var(--color-accent);
        background: var(--color-overlay-light);
    }

.notification-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
    min-height: 200px;
    max-height: 500px;
}

    .notification-list::-webkit-scrollbar {
        width: 4px;
    }

    .notification-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .notification-list::-webkit-scrollbar-thumb {
        background: var(--color-accent);
        border-radius: 9999px;
    }

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

    .notification-item:last-child {
        border-bottom: none;
    }

    .notification-item:hover {
        background: var(--color-overlay-light);
    }

    .notification-item.unread {
        background: var(--color-overlay-gold);
    }

        .notification-item.unread::before {
            content: '';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 24px;
            background: var(--color-accent);
            border-radius: 0 3px 3px 0;
        }

        .notification-item.unread:hover {
            background: var(--color-accent-glow);
        }

    .notification-item .notif-icon {
        font-size: 1.3rem;
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--color-overlay-light);
        border-radius: 50%;
    }

    .notification-item .notif-content {
        flex: 1;
        min-width: 0;
    }

    .notification-item .notif-title {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 0.1rem;
    }

    .notification-item .notif-message {
        font-size: 0.8rem;
        color: var(--text-secondary);
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .notification-item .notif-time {
        font-size: 0.6rem;
        color: var(--text-muted);
        margin-top: 0.25rem;
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }

        .notification-item .notif-time .time-dot {
            width: 3px;
            height: 3px;
            background: var(--text-muted);
            border-radius: 50%;
        }

    .notification-item .notif-actions {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

        .notification-item .notif-actions button {
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            background: transparent;
            color: var(--text-muted);
            cursor: pointer;
            border-radius: 50%;
            transition: all var(--transition-fast);
            font-size: 0.8rem;
        }

            .notification-item .notif-actions button:hover {
                background: var(--color-overlay-light);
                color: var(--color-accent);
                transform: scale(1.1);
            }

        .notification-item .notif-actions .notif-close:hover {
            color: var(--color-error);
        }

.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    text-align: center;
    height: 100%;
    min-height: 200px;
}

    .notification-empty .empty-icon {
        font-size: 3rem;
        margin-bottom: 0.75rem;
        opacity: 0.5;
    }

    .notification-empty .empty-text {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-secondary);
    }

    .notification-empty .empty-sub {
        font-size: 0.8rem;
        color: var(--text-muted);
        margin-top: 0.25rem;
    }

.notification-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
    flex-shrink: 0;
    background: var(--bg-nav-blur);
}

.notification-view-all {
    font-size: 0.75rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

    .notification-view-all:hover {
        color: var(--color-accent-hover);
        text-decoration: underline;
    }

/* Toast */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

    .toast-container .toast {
        pointer-events: all;
    }

.toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px var(--color-shadow-lg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    animation: slideInRight 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
}

    .toast.removing {
        animation: slideOutRight 0.4s ease forwards;
    }

@keyframes slideInRight {
    from {
        transform: translateX(120%) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

    to {
        transform: translateX(120%) scale(0.9);
        opacity: 0;
    }
}

.toast .toast-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.toast .toast-content {
    flex: 1;
    min-width: 0;
}

.toast .toast-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.1rem;
}

.toast .toast-message {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast .toast-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    font-size: 0.8rem;
}

    .toast .toast-close:hover {
        background: var(--color-overlay-light);
        color: var(--color-error);
        transform: scale(1.1);
    }

.toast .toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    animation: toastProgress 4s linear forwards;
}

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.toast.success {
    border-left: 4px solid var(--color-success);
}

    .toast.success .toast-icon {
        color: var(--color-success);
    }

.toast.error {
    border-left: 4px solid var(--color-error);
}

    .toast.error .toast-icon {
        color: var(--color-error);
    }

.toast.warning {
    border-left: 4px solid var(--color-warning);
}

    .toast.warning .toast-icon {
        color: var(--color-warning);
    }

.toast.info {
    border-left: 4px solid var(--color-info);
}

    .toast.info .toast-icon {
        color: var(--color-info);
    }

/* Notification responsive */
@media (max-width: 768px) {
    .notification-dropdown {
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
        top: 70px;
        max-height: 70vh;
        border-radius: var(--radius-md);
    }

    .toast-container {
        bottom: 20px;
        right: 16px;
        left: 16px;
        max-width: none;
    }

    .notification-bell {
        width: 38px;
        height: 38px;
    }

        .notification-bell .bell-icon {
            font-size: 1.1rem;
        }

    .notification-count {
        min-width: 18px;
        height: 18px;
        font-size: 0.5rem;
        top: -3px;
        right: -3px;
    }
}

@media (max-width: 480px) {
    .notification-dropdown {
        top: 60px;
        border-radius: var(--radius-sm);
        max-height: 60vh;
    }

    .notification-item {
        padding: 0.6rem 1rem;
    }

        .notification-item .notif-icon {
            width: 30px;
            height: 30px;
            font-size: 1.1rem;
        }

        .notification-item .notif-title {
            font-size: 0.8rem;
        }

        .notification-item .notif-message {
            font-size: 0.75rem;
        }

    .toast {
        padding: 0.7rem 1rem;
    }

        .toast .toast-icon {
            font-size: 1.2rem;
        }

        .toast .toast-title {
            font-size: 0.8rem;
        }

        .toast .toast-message {
            font-size: 0.75rem;
        }
}

/* ==========================================
   7. LOGOUT MODAL (از _LogoutModal.cshtml)
   ========================================== */
.logout-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

    .logout-modal-overlay.active {
        display: flex;
    }

.logout-modal {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    max-width: 400px;
    width: 100%;
    padding: 2.5rem 2rem;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    animation: slideUp 0.4s var(--transition-smooth);
}

.logout-modal-content {
    text-align: center;
}

.logout-modal-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.logout-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Cinzel', 'Georgia', serif;
    margin-bottom: 0.3rem;
}

.logout-modal-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.logout-modal-actions {
    display: flex;
    gap: 0.75rem;
}

.logout-modal-btn {
    flex: 1;
    padding: 0.7rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .logout-modal-btn.secondary {
        background: transparent;
        color: var(--text-primary);
        border: 2px solid var(--color-border);
    }

        .logout-modal-btn.secondary:hover {
            border-color: var(--color-accent);
            color: var(--color-accent);
            transform: translateY(-2px);
        }

    .logout-modal-btn.danger {
        background: #dc2626;
        color: #fff;
        box-shadow: 0 4px 20px rgba(220,38,38,0.3);
    }

        .logout-modal-btn.danger:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(220,38,38,0.4);
            background: #b91c1c;
        }

    .logout-modal-btn .spinner {
        display: none;
        width: 18px;
        height: 18px;
        border: 2px solid rgba(255,255,255,0.3);
        border-top-color: #fff;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    .logout-modal-btn.loading .spinner {
        display: inline-block;
    }

    .logout-modal-btn.loading .btn-text {
        display: none;
    }

    .logout-modal-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none !important;
    }

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .logout-modal {
        padding: 1.8rem 1.5rem;
    }

    .logout-modal-actions {
        flex-direction: column;
    }
}

/* ==========================================
   8. ACCESSIBILITY & PRINT & THEME (مشترک)
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .nav-link {
        border-bottom: 2px solid transparent;
    }

        .nav-link.active {
            border-bottom-color: var(--color-accent);
        }

        .nav-link .link-indicator {
            display: none;
        }

    .auth-btn, .mobile-auth-btn, .notification-bell, .user-menu-trigger, .logout-item {
        border-width: 2px;
    }
}

@media print {
    .cinematic-background, .header-premium, .footer-cinematic-premium,
    .cinema-loader, .cinema-side-panel, .notification-bell,
    .notification-dropdown, .toast-container, .logout-modal-overlay {
        display: none !important;
    }
}

/* Theme adaptations (common) */
[data-theme="dark"] .notification-dropdown {
    background: rgba(7,11,20,0.97);
}

[data-theme="dark"] .notification-item.unread {
    background: rgba(212,168,75,0.06);
}

[data-theme="dark"] .toast {
    background: rgba(7,11,20,0.97);
}

[data-theme="dark"] .panel-content {
    background: rgba(7,11,20,0.96);
}

[data-theme="dark"] .panel-section {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.06);
}

    [data-theme="dark"] .panel-section:hover {
        border-color: rgba(255,255,255,0.12);
    }

[data-theme="dark"] .music-section {
    background: rgba(212,168,75,0.06);
    border-color: rgba(212,168,75,0.15);
}

[data-theme="dark"] .cinema-loader {
    background: var(--bg-primary);
}

[data-theme="dark"] .loader-flare {
    background: radial-gradient(circle, rgba(212,168,75,0.12) 0%, transparent 70%);
}

[data-theme="dark"] .loader-logo-ring {
    border-color: rgba(212,168,75,0.3);
}

    [data-theme="dark"] .loader-logo-ring::before {
        border-top-color: var(--color-accent);
    }

    [data-theme="dark"] .loader-logo-ring::after {
        border-bottom-color: var(--color-accent-light);
    }

[data-theme="dark"] .logout-modal {
    background: #1a1f2e;
    border-color: #2a3040;
}

[data-theme="light"] .notification-dropdown {
    background: rgba(253,248,240,0.97);
}

[data-theme="light"] .notification-item.unread {
    background: rgba(184,134,11,0.04);
}

[data-theme="light"] .toast {
    background: rgba(253,248,240,0.97);
}

[data-theme="light"] .panel-content {
    background: rgba(253,248,240,0.96);
}

[data-theme="light"] .panel-section {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.06);
}

    [data-theme="light"] .panel-section:hover {
        border-color: rgba(0,0,0,0.12);
    }

[data-theme="light"] .music-section {
    background: rgba(184,134,11,0.04);
    border-color: rgba(184,134,11,0.12);
}

[data-theme="light"] .panel-toggle {
    background: rgba(255,255,255,0.9);
}

[data-theme="light"] .cinema-loader {
    background: var(--bg-primary);
}

[data-theme="light"] .loader-flare {
    background: radial-gradient(circle, rgba(184,134,11,0.08) 0%, transparent 70%);
}

[data-theme="light"] .loader-logo-ring {
    border-color: rgba(184,134,11,0.3);
}

    [data-theme="light"] .loader-logo-ring::before {
        border-top-color: var(--color-accent);
    }

    [data-theme="light"] .loader-logo-ring::after {
        border-bottom-color: var(--color-accent-light);
    }

[data-theme="light"] .loader-title {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .logout-modal {
    background: #ffffff;
    border-color: #e2e8f0;
}
