/* assets/css/style.css */
/* استایل اصلی سایت فیلم - تم شیشه‌ای مشکی */

/* ===== CSS Variables ===== */
:root {
    --bg: #0a0a0b;
    --surface: rgba(255, 255, 255, 0.02);
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --text: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #a78bfa;
    --accent-glow: rgba(167, 139, 250, 0.12);
    --red: #f87171;
    --green: #4ade80;
    --gold: #f59e0b;
    --radius-xl: 1.5rem;
    --radius-lg: 1rem;
    --radius-md: 0.75rem;
    --radius-sm: 0.5rem;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    direction: rtl;
}

/* ===== Background Animation ===== */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 80% 0%, rgba(167, 139, 250, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 0% 100%, rgba(96, 165, 250, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(248, 113, 113, 0.03) 0%, transparent 70%);
    animation: gradientShift 20s ease-in-out infinite alternate;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

@keyframes gradientShift {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Header ===== */
.header-glass {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 11, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--accent);
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.nav-desktop {
    display: flex;
    gap: 0.25rem;
}

.nav-desktop a {
    text-decoration: none;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--text);
    background: var(--glass);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-search,
.btn-menu {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-menu {
    display: none;
}

.btn-search:hover {
    background: var(--glass-hover);
    color: var(--text);
    border-color: rgba(255,255,255,0.15);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem;
    z-index: 99;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.mobile-menu a:hover {
    color: var(--text);
    background: var(--glass);
}

/* ===== Main Content ===== */
.main-content {
    padding: 2rem 0 4rem;
    min-height: 80vh;
}

/* ===== Hero Section ===== */
.hero-section {
    text-align: center;
    padding: 3rem 0 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ===== Filters ===== */
.filters-section {
    margin-bottom: 2rem;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    backdrop-filter: blur(10px);
}

.search-box {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 1rem;
    padding-right: 2.5rem;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.filter-select {
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.filter-select:focus {
    border-color: var(--accent);
}

.filter-select option {
    background: #1a1a1e;
    color: var(--text);
}

.btn-filter {
    padding: 0.75rem 1.25rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-filter:hover {
    background: var(--glass-hover);
    color: var(--text);
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--glass);
    border: 2px dashed var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-text {
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.empty-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ===== Movies Grid ===== */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* ===== Movie Card ===== */
.movie-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.movie-poster {
    position: relative;
    aspect-ratio: 2/3;
    background: var(--surface);
    overflow: hidden;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.05);
}

.movie-overlay {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
}

.movie-rating {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.movie-rating i {
    font-size: 0.7rem;
}

.movie-info {
    padding: 1rem;
}

.movie-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.dot {
    font-size: 0.5rem;
}

.movie-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.genre-tag {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* ===== Footer ===== */
.footer-glass {
    background: rgba(10, 10, 11, 0.75);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .btn-menu {
        display: flex;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-buttons {
        width: 100%;
        flex-wrap: wrap;
    }

    .filter-select {
        flex: 1;
        min-width: 120px;
    }

    .btn-filter {
        flex: 1;
        justify-content: center;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .footer-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-section {
        padding: 2rem 0 1.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .movie-title {
        font-size: 0.9rem;
    }
}

/* ===== استایل‌های جدید هدر ===== */

/* Logo جدید */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.3);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 30%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav Links */
.nav-desktop {
    display: flex;
    gap: 0.25rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link i {
    font-size: 0.8rem;
    opacity: 0.6;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: var(--glass);
}

.nav-link.active i {
    color: var(--accent);
    opacity: 1;
}

/* Buttons */
.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--glass-hover);
    color: var(--text);
    border-color: rgba(255,255,255,0.15);
}

/* Admin Panel Button */
.btn-admin-panel {
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(167, 139, 250, 0.3);
    background: rgba(167, 139, 250, 0.08);
    color: #b69ffc;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-admin-panel:hover {
    background: rgba(167, 139, 250, 0.15);
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.15);
    color: #c4b5fd;
}

.btn-admin-panel i {
    font-size: 0.85rem;
}

/* Login Button */
.btn-login {
    text-decoration: none;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-login:hover {
    background: var(--glass-hover);
    color: var(--text);
    border-color: rgba(255,255,255,0.2);
}

/* User Menu */
.user-menu {
    position: relative;
}

.btn-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem 0.35rem 0.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text);
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-user:hover {
    background: var(--glass-hover);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #fff;
}

.user-name {
    font-weight: 500;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-arrow {
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 200px;
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    z-index: 200;
}

.user-dropdown.active {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--glass-hover);
    color: var(--text);
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

.dropdown-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 0.35rem 0;
}

.logout-item {
    color: #f87171;
}

.logout-item:hover {
    color: #fca5a5;
    background: rgba(248, 113, 113, 0.1);
}

/* Mobile Menu */
.mobile-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 0.5rem 0;
}

.mobile-admin-link {
    color: #b69ffc !important;
}

.mobile-login-link {
    color: var(--accent) !important;
}

.mobile-logout {
    color: #f87171 !important;
}

/* Background Noise */
.bg-noise {
    position: absolute;
    inset: 0;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .btn-admin-panel span,
    .btn-login span,
    .btn-user .user-name,
    .btn-user .user-arrow {
        display: none;
    }
    
    .btn-admin-panel {
        padding: 0.5rem;
    }
    
    .btn-login {
        padding: 0.5rem;
    }
    
    .btn-login span {
        display: none;
    }
    
    .btn-menu {
        display: flex;
    }
}

/* ===== استایل‌های پروفایل و داشبورد ===== */

/* Dashboard Hero */
.dashboard-hero {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.text-accent { color: var(--accent); }

.welcome-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.welcome-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-role { background: var(--glass); border: 1px solid var(--glass-border); }
.badge-role.admin { color: #c4b5fd; border-color: rgba(167, 139, 250, 0.3); }
.badge-role.vip { color: #fbbf24; border-color: rgba(245, 158, 11, 0.3); }
.badge-role.member { color: var(--text-secondary); }

.badge-status { font-size: 0.7rem; }
.badge-status.active { color: var(--green); }
.badge-status i { font-size: 0.4rem; }
.badge-status.blocked { color: var(--red); }

/* Admin Quick Card */
.admin-quick-card {
    text-decoration: none;
    display: block;
    position: relative;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.08) 0%, rgba(167, 139, 250, 0.03) 100%);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
}

.admin-quick-card:hover {
    border-color: rgba(167, 139, 250, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(167, 139, 250, 0.1);
}

.admin-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(167,139,250,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.admin-card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    position: relative;
    z-index: 1;
}

.admin-card-icon {
    width: 50px;
    height: 50px;
    background: rgba(167, 139, 250, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #b69ffc;
    flex-shrink: 0;
}

.admin-card-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #c4b5fd;
    margin-bottom: 0.15rem;
}

.admin-card-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-card-arrow {
    margin-right: auto;
    color: #b69ffc;
    font-size: 1.1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    background: var(--glass-hover);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.stat-icon-movies { background: rgba(96, 165, 250, 0.1); color: #60a5fa; }
.stat-icon-watched { background: rgba(74, 222, 128, 0.1); color: #4ade80; }
.stat-icon-favorites { background: rgba(248, 113, 113, 0.1); color: #f87171; }
.stat-icon-watchlist { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.stat-info { display: flex; flex-direction: column; }
.stat-value { font-size: 1.5rem; font-weight: 800; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Dash Card */
.dash-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.dash-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dash-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dash-card-header h3 i { color: var(--accent); font-size: 0.9rem; }

.dash-card-body {
    padding: 1rem 1.25rem;
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: var(--transition);
}

.quick-link:hover {
    background: var(--glass-hover);
    color: var(--text);
}

.quick-link i {
    width: 18px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

.quick-link.admin-link {
    color: #b69ffc;
}

/* Empty Activity */
.empty-activity {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.empty-activity i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.3;
}

.empty-activity p {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.empty-activity span {
    font-size: 0.8rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.info-value {
    font-weight: 600;
}

/* Profile Header */
.profile-header-section {
    position: relative;
    margin-bottom: 2rem;
}

.profile-cover {
    height: 140px;
    background: linear-gradient(135deg, rgba(167,139,250,0.1) 0%, rgba(96,165,250,0.05) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
}

.profile-header-content {
    display: flex;
    justify-content: center;
    margin-top: -50px;
}

.current-avatar-container {
    text-align: center;
}

.current-avatar {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 0.75rem;
}

.current-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--bg);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--glass);
    border: 3px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-muted);
}

.avatar-change-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
    color: #fff;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.avatar-change-btn:hover {
    background: #b69ffc;
    transform: scale(1.1);
}

.profile-username {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Profile Card */
.profile-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.profile-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-card-header h3 i { color: var(--accent); }

.header-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.profile-card-body {
    padding: 1.25rem;
}

/* Form Styles */
.form-group { margin-bottom: 1rem; }
.form-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.input-icon { position: relative; }
.input-icon i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn {
    padding: 0.7rem 1.25rem;
    border-radius: var(--radius-md);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: #b69ffc;
    box-shadow: 0 8px 25px rgba(167,139,250,0.3);
}

/* Alert */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.alert-success {
    background: rgba(74,222,128,0.1);
    border: 1px solid rgba(74,222,128,0.2);
    color: #4ade80;
}

.alert-error {
    background: rgba(248,113,113,0.1);
    border: 1px solid rgba(248,113,113,0.2);
    color: #f87171;
}

/* Avatar Selection */
.avatar-selection-section {
    margin-bottom: 3rem;
}

.avatar-selection-card .profile-card-body {
    max-height: 600px;
    overflow-y: auto;
}

.avatar-category {
    margin-bottom: 1.5rem;
}

.category-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-title i { color: var(--accent); }

.category-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}

.avatar-option {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    background: var(--surface);
}

.avatar-option:hover {
    border-color: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.avatar-option.selected {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-selected-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: #fff;
}

.avatar-hover-select {
    position: absolute;
    inset: 0;
    background: rgba(167,139,250,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.avatar-option:hover .avatar-hover-select {
    opacity: 1;
}

.avatar-option.selected .avatar-hover-select {
    display: none;
}

.empty-avatars {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.empty-avatars i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.3;
}

.empty-avatars code {
    background: var(--surface);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.avatar-form-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

/* User Dropdown Info */
.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
}

.dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--glass);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-avatar i {
    font-size: 1rem;
    color: var(--text-muted);
}

.dropdown-user-details {
    display: flex;
    flex-direction: column;
}

.dropdown-username {
    font-weight: 600;
    font-size: 0.85rem;
}

.dropdown-role {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.admin-dropdown-item {
    color: #b69ffc !important;
}

/* User Avatar in Header */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar i {
    font-size: 0.75rem;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .avatar-grid {
        grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    }
}