/* ============================================
   style.css - تم خاکستری شیک (Chic Gray)
   ============================================ */

/* ============================================
   تم روشن (پیش‌فرض)
   ============================================ */
@font-face {
    font-family: "vazir";
    src: url(../messenger/fonts/vazir/Vazir-Medium.woff) ;
}   
 
:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --primary-light: #8B83FF;
    --primary-gradient: linear-gradient(135deg, #6C63FF 0%, #3F3D9E 100%);
    --primary-gradient-soft: linear-gradient(135deg, rgba(108, 99, 255, 0.15) 0%, rgba(63, 61, 158, 0.15) 100%);
    
    --secondary: #FF6584;
    --secondary-gradient: linear-gradient(135deg, #FF6584 0%, #E05575 100%);
    --success: #00D2A0;
    --warning: #FFB347;
    --danger: #FF6B6B;
    --info: #4A9EFF;

    --bg-primary: #F4F6FA;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8F8FC;
    --bg-input: #FFFFFF;
    --bg-hover: #F0EEFF;
    --bg-glass: rgba(255, 255, 255, 0.6);
    
    --text-primary: #1A1A2E;
    --text-secondary: #6B6B80;
    --text-muted: #9A9AB0;
    --text-inverse: #FFFFFF;
    
    --border-color: #E8E8F0;
    --border-light: rgba(108, 99, 255, 0.08);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(108, 99, 255, 0.12);
    --shadow-lg: 0 20px 60px rgba(108, 99, 255, 0.18);
    --shadow-xl: 0 30px 80px rgba(108, 99, 255, 0.25);
    --shadow-glow: 0 0 60px rgba(108, 99, 255, 0.08);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   تم خاکستری شیک (Chic Gray) - پیش‌فرض دارک مود
   ============================================ */
[data-theme="dark"] {
    /* رنگ‌های پایه - خاکستری شیک */
    --bg-primary: #0E0E12;
    --bg-secondary: #16161C;
    --bg-card: #1E1E26;
    --bg-card-hover: #282832;
    --bg-input: #1E1E26;
    --bg-hover: #282834;
    --bg-glass: rgba(30, 30, 38, 0.85);
    
    /* رنگ‌های اصلی - خاکستری نقره‌ای با درخشش ملایم */
    --primary: #C8C8E0;
    --primary-dark: #A8A8C0;
    --primary-light: #E0E0F0;
    --primary-gradient: linear-gradient(135deg, #C8C8E0 0%, #A0A0B8 100%);
    --primary-gradient-soft: linear-gradient(135deg, rgba(200, 200, 224, 0.12) 0%, rgba(160, 160, 184, 0.12) 100%);
    --secondary-gradient: linear-gradient(135deg, #E0C8C8 0%, #B8A0A0 100%);
    
    /* متن‌ها - خوانایی عالی */
    --text-primary: #F0F0F5;
    --text-secondary: #B0B0C0;
    --text-muted: #6A6A7A;
    --text-inverse: #1E1E26;
    
    /* مرزها و سایه‌ها */
    --border-color: #2A2A36;
    --border-light: rgba(200, 200, 224, 0.06);
    
    /* سایه‌های نرم با درخشش ملایم */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 60px rgba(200, 200, 224, 0.02);
    
    /* رنگ‌های حالت‌ها - ملایم و شیک */
    --success: #80D0B8;
    --warning: #D0C080;
    --danger: #D08080;
    --info: #80A0D0;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'vazir', sans-serif !required;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    transition: background var(--transition-base), color var(--transition-base);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   اسکرول بار
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ============================================
   DASHBOARD WRAPPER
   ============================================ */
.dashboard-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    min-height: 100vh;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    position: relative;
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .navbar {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

.navbar:hover {
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .navbar:hover {
    box-shadow: var(--shadow-md), var(--shadow-glow);
    border-color: rgba(200, 200, 224, 0.1);
}

.navbar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.navbar .brand .logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    transition: color var(--transition-fast);
}

.navbar .brand .logo-text .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .navbar .brand .logo-text .highlight {
    background: linear-gradient(135deg, #E0E0F0 0%, #C8C8E0 50%, #A0A0B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar .brand svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    transition: transform var(--transition-bounce);
}

[data-theme="dark"] .navbar .brand svg {
    filter: drop-shadow(0 0 20px rgba(200, 200, 224, 0.1));
}

.navbar .brand:hover svg {
    transform: scale(1.05) rotate(-5deg);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    position: relative;
}

/* ===== دکمه‌های نوار ===== */
.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    position: relative;
}

.icon-btn:hover {
    background: var(--bg-hover);
    color: var(--primary);
    transform: translateY(-1px);
}

[data-theme="dark"] .icon-btn:hover {
    background: rgba(200, 200, 224, 0.06);
    color: var(--primary);
}

.icon-btn:active {
    transform: scale(0.95);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.icon-btn:hover svg {
    transform: scale(1.05);
}

/* ===== دکمه تم ===== */
.theme-toggle-nav {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
}

.theme-toggle-nav:hover {
    background: var(--bg-hover);
    color: var(--primary);
    transform: rotate(20deg);
}

[data-theme="dark"] .theme-toggle-nav:hover {
    background: rgba(200, 200, 224, 0.06);
    color: var(--primary);
}

.theme-toggle-nav svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

/* ===== لینک مدیریت ===== */
.admin-link {
    padding: 6px 14px;
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
    font-family: 'vazir', sans-serif;
    white-space: nowrap;
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.admin-link:hover {
    background: rgba(220, 38, 38, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

[data-theme="dark"] .admin-link {
    background: rgba(208, 128, 128, 0.08);
    border-color: rgba(208, 128, 128, 0.12);
    color: var(--danger);
}

[data-theme="dark"] .admin-link:hover {
    background: rgba(208, 128, 128, 0.15);
    box-shadow: 0 4px 20px rgba(208, 128, 128, 0.1);
}

.admin-link svg {
    width: 14px;
    height: 14px;
}

/* ===== دکمه اعلان ===== */
.notification-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-btn:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

[data-theme="dark"] .notification-btn:hover {
    background: rgba(200, 200, 224, 0.06);
    color: var(--primary);
}

.notification-btn svg {
    width: 20px;
    height: 20px;
}

.notification-btn .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--danger);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: var(--radius-full);
    min-width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    animation: pulse-badge 2s infinite;
}

[data-theme="dark"] .notification-btn .badge {
    box-shadow: 0 2px 12px rgba(208, 128, 128, 0.3);
}

@keyframes pulse-badge {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ===== دکمه پروفایل ===== */
.profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px 4px 6px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: 'vazir', sans-serif;
    flex-shrink: 0;
    min-height: 38px;
}

.profile-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.15);
    transform: translateY(-1px);
}

[data-theme="dark"] .profile-btn {
    background: rgba(200, 200, 224, 0.04);
    border-color: var(--border-light);
}

[data-theme="dark"] .profile-btn:hover {
    background: rgba(200, 200, 224, 0.08);
    border-color: var(--primary);
    box-shadow: 0 4px 24px rgba(200, 200, 224, 0.06);
}

.profile-btn .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    overflow: hidden;
    transition: transform var(--transition-fast);
}

[data-theme="dark"] .profile-btn .avatar {
    box-shadow: 0 0 20px rgba(200, 200, 224, 0.08);
}

.profile-btn:hover .avatar {
    transform: scale(1.05);
}

.profile-btn .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-btn .user-info {
    text-align: right;
    min-width: 0;
}

.profile-btn .user-info .name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.profile-btn .user-info .email {
    display: none;
    font-size: 11px;
    color: var(--text-secondary);
}

.profile-btn .chevron {
    color: var(--text-secondary);
    transition: transform var(--transition-fast);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.profile-btn .chevron.open {
    transform: rotate(180deg);
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 24px;
    width: 100%;
}

.stat-card {
    background: var(--bg-card);
    padding: 18px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    min-height: 84px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .stat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: var(--border-light);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

[data-theme="dark"] .stat-card:hover {
    box-shadow: var(--shadow-md), var(--shadow-glow);
    border-color: rgba(200, 200, 224, 0.12);
}

.stat-card .stat-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    transition: transform var(--transition-fast);
}

.stat-card:hover .stat-icon {
    transform: scale(1.05);
}

.stat-card .stat-icon svg {
    width: 18px;
    height: 18px;
}

.stat-card .stat-icon.purple {
    background: rgba(108, 99, 255, 0.12);
    color: var(--primary);
}
.stat-card .stat-icon.green {
    background: rgba(0, 210, 160, 0.12);
    color: var(--success);
}
.stat-card .stat-icon.orange {
    background: rgba(255, 179, 71, 0.12);
    color: var(--warning);
}
.stat-card .stat-icon.blue {
    background: rgba(74, 158, 255, 0.12);
    color: var(--info);
}

[data-theme="dark"] .stat-card .stat-icon.purple {
    background: rgba(200, 200, 224, 0.08);
    color: var(--primary);
}
[data-theme="dark"] .stat-card .stat-icon.green {
    background: rgba(128, 208, 184, 0.08);
    color: var(--success);
}
[data-theme="dark"] .stat-card .stat-icon.orange {
    background: rgba(208, 192, 128, 0.08);
    color: var(--warning);
}
[data-theme="dark"] .stat-card .stat-icon.blue {
    background: rgba(128, 160, 208, 0.08);
    color: var(--info);
}

.stat-card .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

[data-theme="dark"] .stat-card .stat-label {
    opacity: 0.8;
}

.stat-card .stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 2px;
    letter-spacing: -0.5px;
}

.stat-card .stat-value.small {
    font-size: 15px;
}

/* ============================================
   WELCOME CARD
   ============================================ */
.welcome-card {
    background: var(--primary-gradient);
    color: var(--text-inverse);
    margin-bottom: 24px;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    border: none;
}

[data-theme="dark"] .welcome-card {
    background: linear-gradient(135deg, #2A2A36 0%, #1E1E26 100%);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float-bg 8s ease-in-out infinite;
}

.welcome-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    animation: float-bg 10s ease-in-out infinite reverse;
}

[data-theme="dark"] .welcome-card::before {
    background: rgba(200, 200, 224, 0.04);
}

[data-theme="dark"] .welcome-card::after {
    background: rgba(200, 200, 224, 0.02);
}

@keyframes float-bg {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, -20px);
    }
}

.welcome-card > div {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.welcome-card .emoji-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

[data-theme="dark"] .welcome-card .emoji-circle {
    background: rgba(200, 200, 224, 0.06);
}

.welcome-card h2 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.welcome-card p {
    opacity: 0.85;
    font-size: 14px;
    margin-top: 2px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    width: 100%;
    overflow: hidden;
}

[data-theme="dark"] .card {
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: var(--border-light);
}

.card:hover {
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .card:hover {
    box-shadow: var(--shadow-md), var(--shadow-glow);
    border-color: rgba(200, 200, 224, 0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header .badge {
    background: var(--primary-gradient);
    color: var(--text-inverse);
    padding: 2px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

[data-theme="dark"] .card-header .badge {
    background: linear-gradient(135deg, #C8C8E0 0%, #A0A0B8 100%);
    color: #1E1E26;
    box-shadow: 0 2px 12px rgba(200, 200, 224, 0.08);
}

/* ============================================
   PROFILE ROWS
   ============================================ */
.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.profile-row:hover {
    background: var(--bg-hover);
    margin: 0 -8px;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
}

[data-theme="dark"] .profile-row:hover {
    background: rgba(200, 200, 224, 0.02);
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-row .label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.profile-row .value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    text-align: left;
    word-break: break-word;
    max-width: 60%;
}

/* ============================================
   ACTIVITY ITEMS
   ============================================ */
.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.activity-item:hover {
    background: var(--bg-hover);
    margin: 0 -8px;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
}

[data-theme="dark"] .activity-item:hover {
    background: rgba(200, 200, 224, 0.02);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

[data-theme="dark"] .activity-dot.login {
    background: var(--primary);
    box-shadow: 0 0 12px rgba(200, 200, 224, 0.1);
}

[data-theme="dark"] .activity-dot.logout {
    background: var(--danger);
    box-shadow: 0 0 12px rgba(208, 128, 128, 0.1);
}

[data-theme="dark"] .activity-dot.update {
    background: var(--warning);
    box-shadow: 0 0 12px rgba(208, 192, 128, 0.1);
}

.activity-item:hover .activity-dot {
    transform: scale(1.2);
}

.activity-text {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
    font-weight: 500;
}

/* ============================================
   QUICK ACTIONS
   ============================================ */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.action-btn {
    padding: 16px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-base);
    font-family: 'vazir', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-height: 68px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .action-btn {
    border-color: var(--border-light);
    background: rgba(200, 200, 224, 0.02);
}

.action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
    border-radius: inherit;
}

.action-btn:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--primary);
}

[data-theme="dark"] .action-btn:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    color: var(--primary);
}

.action-btn:hover::before {
    opacity: 0.04;
}

.action-btn:active {
    transform: scale(0.97);
}

.action-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform var(--transition-fast);
}

.action-btn:hover svg {
    transform: scale(1.1);
}

.action-btn span {
    position: relative;
    z-index: 1;
}

/* ============================================
   TIPS CARD
   ============================================ */
.tips-card {
    background: var(--primary-gradient);
    color: var(--text-inverse);
    border: none;
    text-align: center;
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .tips-card {
    background: linear-gradient(135deg, #2A2A36 0%, #1E1E26 100%);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.tips-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float-bg 8s ease-in-out infinite;
}

[data-theme="dark"] .tips-card::before {
    background: rgba(200, 200, 224, 0.04);
}

.tips-card .icon {
    font-size: 36px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    display: block;
}

.tips-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.tips-card p {
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* ============================================
   DROPDOWNS
   ============================================ */
.notification-dropdown,
.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all var(--transition-base);
    z-index: 1000;
    transform-origin: top right;
}

[data-theme="dark"] .notification-dropdown,
[data-theme="dark"] .profile-dropdown {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-xl);
}

.notification-dropdown.open,
.profile-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notification-dropdown {
    min-width: 320px;
    max-width: 360px;
    max-height: 400px;
    overflow-y: auto;
}

.profile-dropdown {
    min-width: 220px;
}

.notification-dropdown .notif-header {
    padding: 12px 16px 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[data-theme="dark"] .notification-dropdown .notif-header {
    border-color: var(--border-light);
}

.notification-dropdown .notif-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.notification-dropdown .notif-header .mark-all {
    font-size: 12px;
    color: var(--primary);
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'vazir', sans-serif;
    font-weight: 600;
    transition: color var(--transition-fast);
}

[data-theme="dark"] .notification-dropdown .notif-header .mark-all {
    color: var(--primary);
}

.notification-dropdown .notif-header .mark-all:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    cursor: pointer;
    border-radius: var(--radius-sm);
}

[data-theme="dark"] .notification-item {
    border-color: var(--border-light);
}

.notification-item:hover {
    background: var(--bg-hover);
}

[data-theme="dark"] .notification-item:hover {
    background: rgba(200, 200, 224, 0.03);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item .notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
    flex-shrink: 0;
}

.notification-item .notif-dot.unread {
    background: var(--primary);
    box-shadow: 0 0 12px rgba(200, 200, 224, 0.15);
}

[data-theme="dark"] .notification-item .notif-dot.unread {
    box-shadow: 0 0 20px rgba(200, 200, 224, 0.1);
}

.notification-item .notif-dot.read {
    background: var(--text-muted);
}

.notification-item .notif-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.notification-item .notif-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    padding-right: 20px;
}

/* ===== Profile Dropdown ===== */
.profile-dropdown .dropdown-header {
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .profile-dropdown .dropdown-header {
    border-color: var(--border-light);
}

.profile-dropdown .dropdown-header .user-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-dropdown .dropdown-header .user-email {
    font-size: 12px;
    color: var(--text-secondary);
}

.profile-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-family: 'vazir', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    min-height: 40px;
}

.profile-dropdown .dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

[data-theme="dark"] .profile-dropdown .dropdown-item:hover {
    background: rgba(200, 200, 224, 0.03);
    color: var(--primary);
}

.profile-dropdown .dropdown-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.profile-dropdown .dropdown-item:hover svg {
    color: var(--primary);
}

[data-theme="dark"] .profile-dropdown .dropdown-item:hover svg {
    color: var(--primary);
}

.profile-dropdown .dropdown-item.danger {
    color: var(--danger);
}

.profile-dropdown .dropdown-item.danger:hover {
    background: rgba(208, 128, 128, 0.08);
    color: var(--danger);
}

[data-theme="dark"] .profile-dropdown .dropdown-item.danger:hover svg {
    color: var(--danger);
}

.profile-dropdown .dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 16px;
}

[data-theme="dark"] .profile-dropdown .dropdown-divider {
    background: var(--border-light);
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn var(--transition-base);
}

[data-theme="dark"] .modal-overlay {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 440px;
    width: 100%;
    padding: 28px 24px;
    animation: modalSlideUp var(--transition-bounce);
    max-height: 92vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
}

[data-theme="dark"] .modal {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-xl);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: var(--bg-hover);
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .modal-close {
    background: rgba(200, 200, 224, 0.04);
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
    transform: rotate(90deg);
}

[data-theme="dark"] .modal-close:hover {
    background: rgba(200, 200, 224, 0.08);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal .form-group {
    margin-bottom: 16px;
}

.modal .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.modal .form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: 'vazir', sans-serif;
    transition: all var(--transition-fast);
    color: var(--text-primary);
    background: var(--bg-input);
}

[data-theme="dark"] .modal .form-group input {
    background: rgba(30, 30, 38, 0.6);
    border-color: var(--border-light);
}

.modal .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

[data-theme="dark"] .modal .form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(200, 200, 224, 0.04);
}

.modal .form-group input[type="file"] {
    padding: 10px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

[data-theme="dark"] .modal .form-group input[type="file"] {
    border-color: var(--border-light);
}

.modal .form-group input[type="file"]:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
}

[data-theme="dark"] .modal .form-group input[type="file"]:hover {
    border-color: var(--primary);
    background: rgba(200, 200, 224, 0.02);
}

.modal .form-group .input-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.modal .btn-submit {
    width: 100%;
    padding: 13px;
    background: var(--primary-gradient);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    font-family: 'vazir', sans-serif;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .modal .btn-submit {
    background: linear-gradient(135deg, #C8C8E0 0%, #A0A0B8 100%);
    color: #1E1E26;
    box-shadow: 0 4px 20px rgba(200, 200, 224, 0.04);
}

.modal .btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.modal .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.35);
}

[data-theme="dark"] .modal .btn-submit:hover {
    box-shadow: 0 8px 40px rgba(200, 200, 224, 0.08);
}

.modal .btn-submit:hover::before {
    opacity: 1;
}

.modal .btn-submit:active {
    transform: scale(0.98);
}

.avatar-preview {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: block;
    object-fit: cover;
    border: 3px solid var(--border-color);
    transition: border-color var(--transition-fast);
}

[data-theme="dark"] .avatar-preview {
    border-color: var(--border-light);
    box-shadow: 0 0 30px rgba(200, 200, 224, 0.02);
}

.avatar-preview:hover {
    border-color: var(--primary);
}

[data-theme="dark"] .avatar-preview:hover {
    border-color: var(--primary);
}

/* ============================================
   TOAST
   ============================================ */
.toast-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

[data-theme="dark"] .toast-overlay {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.toast-overlay.active {
    display: flex;
}

.toast-box {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 400px;
    width: 100%;
    padding: 32px 28px;
    animation: toastSlideUp var(--transition-bounce);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .toast-box {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-xl);
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast-box .toast-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 28px;
    transition: transform var(--transition-fast);
}

[data-theme="dark"] .toast-box .toast-icon.success {
    background: rgba(128, 208, 184, 0.12);
    color: var(--success);
}
[data-theme="dark"] .toast-box .toast-icon.error {
    background: rgba(208, 128, 128, 0.12);
    color: var(--danger);
}
[data-theme="dark"] .toast-box .toast-icon.warning {
    background: rgba(208, 192, 128, 0.12);
    color: var(--warning);
}
[data-theme="dark"] .toast-box .toast-icon.info {
    background: rgba(200, 200, 224, 0.08);
    color: var(--primary);
}

.toast-box .toast-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.toast-box .toast-message {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 22px;
}

.toast-box .toast-buttons {
    display: flex;
    gap: 10px;
}

.toast-box .toast-buttons .toast-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    font-family: 'vazir', sans-serif;
    cursor: pointer;
    transition: all var(--transition-base);
}

.toast-box .toast-buttons .toast-btn-primary {
    background: var(--primary-gradient);
    color: var(--text-inverse);
}

[data-theme="dark"] .toast-box .toast-buttons .toast-btn-primary {
    background: linear-gradient(135deg, #C8C8E0 0%, #A0A0B8 100%);
    color: #1E1E26;
    box-shadow: 0 4px 20px rgba(200, 200, 224, 0.04);
}

.toast-box .toast-buttons .toast-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.3);
}

[data-theme="dark"] .toast-box .toast-buttons .toast-btn-primary:hover {
    box-shadow: 0 8px 40px rgba(200, 200, 224, 0.08);
}

.toast-box .toast-buttons .toast-btn-secondary {
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .toast-box .toast-buttons .toast-btn-secondary {
    background: rgba(200, 200, 224, 0.04);
    border-color: var(--border-light);
}

.toast-box .toast-buttons .toast-btn-secondary:hover {
    background: var(--border-color);
}

[data-theme="dark"] .toast-box .toast-buttons .toast-btn-secondary:hover {
    background: rgba(200, 200, 224, 0.06);
}

/* ===== Toast Notifications ===== */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto;
}

.toast-notification .toast-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastIn var(--transition-bounce);
    border-right: 4px solid var(--primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .toast-notification .toast-item {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

.toast-notification .toast-item.success {
    border-right-color: var(--success);
}
.toast-notification .toast-item.error {
    border-right-color: var(--danger);
}
.toast-notification .toast-item.warning {
    border-right-color: var(--warning);
}

.toast-notification .toast-item .toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-notification .toast-item .toast-content .toast-msg {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.toast-notification .toast-item .toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    transition: color var(--transition-fast);
    margin-right: auto;
}

.toast-notification .toast-item .toast-close:hover {
    color: var(--text-primary);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .auth-container {
    background: linear-gradient(135deg, #0E0E12 0%, #1E1E26 100%);
}

.auth-container::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float-bg 20s ease-in-out infinite;
}

[data-theme="dark"] .auth-container::before {
    background: rgba(200, 200, 224, 0.03);
}

.auth-container::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    animation: float-bg 15s ease-in-out infinite reverse;
}

[data-theme="dark"] .auth-container::after {
    background: rgba(200, 200, 224, 0.02);
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    animation: authSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .auth-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-xl);
}

@keyframes authSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo svg {
    width: 56px;
    height: 56px;
    margin-bottom: 10px;
    transition: transform var(--transition-bounce);
}

[data-theme="dark"] .auth-logo svg {
    filter: drop-shadow(0 0 30px rgba(200, 200, 224, 0.04));
}

.auth-logo:hover svg {
    transform: scale(1.05) rotate(-5deg);
}

.auth-logo h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.auth-logo p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 2px;
}

/* ===== Form ===== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.form-group label .required {
    color: var(--danger);
    margin-right: 2px;
}

.form-group input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: 'vazir', sans-serif;
    transition: all var(--transition-fast);
    background: var(--bg-input);
    color: var(--text-primary);
}

[data-theme="dark"] .form-group input {
    background: rgba(30, 30, 38, 0.6);
    border-color: var(--border-light);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

[data-theme="dark"] .form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(200, 200, 224, 0.04);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:disabled {
    background: var(--bg-hover);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: var(--primary-gradient);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    font-family: 'vazir', sans-serif;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #C8C8E0 0%, #A0A0B8 100%);
    color: #1E1E26;
    box-shadow: 0 4px 20px rgba(200, 200, 224, 0.04);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.35);
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 8px 40px rgba(200, 200, 224, 0.08);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: scale(0.98);
}

.auth-links {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.auth-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== Alert ===== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown var(--transition-fast);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(0, 210, 160, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 210, 160, 0.2);
}

.alert-error {
    background: rgba(255, 107, 107, 0.1);
    color: var(--danger);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.alert-info {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(108, 99, 255, 0.2);
}

[data-theme="dark"] .alert-success {
    background: rgba(128, 208, 184, 0.08);
    border-color: rgba(128, 208, 184, 0.12);
}

[data-theme="dark"] .alert-error {
    background: rgba(208, 128, 128, 0.08);
    border-color: rgba(208, 128, 128, 0.12);
}

[data-theme="dark"] .alert-info {
    background: rgba(200, 200, 224, 0.04);
    border-color: rgba(200, 200, 224, 0.08);
}

.alert svg {
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* === گوشی‌های کوچک (<= 375px) === */
@media (max-width: 375px) {
    .dashboard-wrapper {
        padding: 12px;
    }

    .navbar {
        padding: 8px 12px;
        border-radius: var(--radius-md);
        min-height: 48px;
    }

    .navbar .brand .logo-text {
        font-size: 16px;
    }

    .navbar .brand svg {
        width: 26px;
        height: 26px;
    }

    .profile-btn {
        padding: 3px 10px 3px 4px;
        min-height: 32px;
    }

    .profile-btn .avatar {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .profile-btn .user-info .name {
        font-size: 11px;
        max-width: 50px;
    }

    .profile-btn .chevron {
        width: 12px;
        height: 12px;
    }

    .icon-btn,
    .theme-toggle-nav,
    .notification-btn {
        width: 32px;
        height: 32px;
        padding: 6px;
    }

    .icon-btn svg,
    .theme-toggle-nav svg,
    .notification-btn svg {
        width: 16px;
        height: 16px;
    }

    .admin-link {
        font-size: 10px;
        padding: 4px 10px;
    }

    .admin-link svg {
        width: 12px;
        height: 12px;
    }

    .stats-grid {
        gap: 8px;
    }

    .stat-card {
        padding: 12px 12px;
        min-height: 68px;
        border-radius: var(--radius-md);
    }

    .stat-card .stat-value {
        font-size: 18px;
    }

    .stat-card .stat-label {
        font-size: 10px;
    }

    .stat-card .stat-icon {
        width: 30px;
        height: 30px;
    }

    .stat-card .stat-icon svg {
        width: 15px;
        height: 15px;
    }

    .welcome-card {
        padding: 16px 16px;
        border-radius: var(--radius-md);
    }

    .welcome-card .emoji-circle {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .welcome-card h2 {
        font-size: 17px;
    }

    .welcome-card p {
        font-size: 12px;
    }

    .card {
        padding: 16px 14px;
        border-radius: var(--radius-md);
    }

    .card-header h3 {
        font-size: 15px;
    }

    .profile-row .label,
    .profile-row .value {
        font-size: 12px;
    }

    .quick-actions {
        gap: 8px;
    }

    .action-btn {
        padding: 12px 8px;
        font-size: 11px;
        min-height: 56px;
        border-radius: var(--radius-md);
    }

    .action-btn svg {
        width: 20px;
        height: 20px;
    }

    .tips-card {
        padding: 20px 16px;
        border-radius: var(--radius-md);
    }

    .tips-card .icon {
        font-size: 30px;
    }

    .tips-card h3 {
        font-size: 15px;
    }

    .tips-card p {
        font-size: 12px;
    }

    .notification-dropdown {
        min-width: 260px;
        max-width: 290px;
        right: -10px;
        border-radius: var(--radius-md);
    }

    .profile-dropdown {
        min-width: 200px;
        right: -10px;
        border-radius: var(--radius-md);
    }

    .profile-dropdown .dropdown-item {
        font-size: 12px;
        padding: 8px 12px;
        min-height: 36px;
    }

    .modal {
        padding: 20px 16px;
        border-radius: var(--radius-lg);
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .auth-card {
        padding: 28px 20px;
        border-radius: var(--radius-lg);
    }

    .auth-logo h1 {
        font-size: 22px;
    }

    .auth-logo svg {
        width: 44px;
        height: 44px;
    }

    .toast-box {
        padding: 24px 20px;
        border-radius: var(--radius-lg);
    }

    .toast-box .toast-title {
        font-size: 16px;
    }

    .toast-box .toast-message {
        font-size: 13px;
    }
}

/* === گوشی‌های معمولی (376px - 430px) === */
@media (min-width: 376px) and (max-width: 430px) {
    .dashboard-wrapper {
        padding: 14px;
    }

    .navbar {
        padding: 8px 14px;
        min-height: 52px;
    }

    .navbar .brand .logo-text {
        font-size: 17px;
    }

    .profile-btn .user-info .name {
        max-width: 60px;
        font-size: 12px;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        padding: 14px 14px;
        min-height: 76px;
    }

    .stat-card .stat-value {
        font-size: 20px;
    }
}

/* === تبلت‌ها (431px - 768px) === */
@media (min-width: 431px) and (max-width: 768px) {
    .dashboard-wrapper {
        padding: 18px;
    }

    .navbar {
        padding: 10px 18px;
    }

    .navbar .brand .logo-text {
        font-size: 19px;
    }

    .profile-btn .user-info .name {
        max-width: 80px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .stat-card {
        padding: 16px 16px;
        min-height: 80px;
    }

    .stat-card .stat-value {
        font-size: 22px;
    }

    .main-grid {
        gap: 18px;
    }

    .quick-actions {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

/* === دسکتاپ (>= 769px) === */
@media (min-width: 769px) {
    .dashboard-wrapper {
        padding: 28px;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .stat-card {
        padding: 22px 20px;
        min-height: 96px;
    }

    .stat-card .stat-value {
        font-size: 26px;
    }

    .main-grid {
        grid-template-columns: 2fr 1fr;
        gap: 24px;
    }

    .profile-btn .user-info .email {
        display: block;
        font-size: 11px;
        color: var(--text-secondary);
    }

    .profile-btn .user-info .name {
        max-width: none;
        font-size: 14px;
    }

    .quick-actions {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .action-btn {
        min-height: 76px;
        padding: 18px 14px;
    }

    .navbar {
        padding: 12px 24px;
        border-radius: var(--radius-xl);
    }

    .navbar .brand .logo-text {
        font-size: 22px;
    }

    .navbar .brand svg {
        width: 36px;
        height: 36px;
    }

    .card {
        padding: 24px;
        border-radius: var(--radius-xl);
    }

    .welcome-card {
        padding: 24px 32px;
        border-radius: var(--radius-xl);
    }

    .welcome-card h2 {
        font-size: 22px;
    }

    .auth-card {
        padding: 48px 40px;
        border-radius: var(--radius-xl);
    }

    .auth-logo h1 {
        font-size: 28px;
    }

    .auth-logo svg {
        width: 64px;
        height: 64px;
    }

    .toast-notification {
        right: 32px;
        left: auto;
    }
}

/* ============================================
   UTILITY
   ============================================ */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.w-full {
    width: 100%;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

/* ============================================
   IOS SAFE AREA
   ============================================ */
@supports (padding: max(0px)) {
    .dashboard-wrapper,
    .auth-container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-top: max(8px, env(safe-area-inset-top));
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
}

/* ============================================
   TOUCH TARGETS
   ============================================ */
@media (max-width: 768px) {
    button,
    .btn-primary,
    .action-btn,
    .dropdown-item,
    .notification-item,
    .profile-btn,
    .toast-btn,
    .admin-link,
    .icon-btn,
    .theme-toggle-nav,
    .notification-btn {
        min-height: 40px;
    }

    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    .notification-item,
    .dropdown-item {
        min-height: 44px;
    }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    .navbar,
    .auth-container::before,
    .auth-container::after,
    .toast-overlay,
    .toast-notification,
    .modal-overlay {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }

    .card,
    .stat-card,
    .auth-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* ============================================
   متغیرهای انیمیشن - قابل کنترل توسط تنظیمات
   ============================================ */
:root {
    /* مقادیر پیش‌فرض (متوسط) */
    --transition-duration: 0.4s;
    --transition-base: 0.3s;
    --transition-fast: 0.2s;
    --transition-slow: 0.5s;
    --transition-delay: 0.05s;
    --transition-easing: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* استفاده از متغیرها در تمام المان‌ها */
* {
    transition-duration: var(--transition-base);
    transition-timing-function: var(--transition-easing);
}

/* کلاس‌های انیمیشن با متغیر */
.fade-in {
    animation: fadeIn var(--transition-duration) var(--transition-easing) forwards;
}

.slide-up {
    animation: slideUp var(--transition-duration) var(--transition-easing) forwards;
}

.scale-in {
    animation: scaleIn var(--transition-duration) var(--transition-easing) forwards;
}

.bounce-in {
    animation: bounceIn var(--transition-duration) var(--transition-easing) forwards;
}

/* انیمیشن‌های پایه */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   افکت Parallax لوگو
   ============================================ */

/* بخش hero باید موقعیت نسبی داشته باشد */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* کانتینر لوگو برای parallax */
.hero .hero-image {
    position: relative;
    z-index: 2;
    pointer-events: none; /* جلوگیری از تداخل کلیک */
}

/* خود لوگو با افکت parallax */
.hero .logo-scroll {
    will-change: transform, opacity, filter;
    transition: none;
    pointer-events: auto; /* فعال کردن کلیک روی لوگو */
    position: relative;
    z-index: 3;
    
    /* جلوگیری از خروج از محدوده */
    max-height: 80vh;
    max-width: 80vw;
}

/* کانتینر محتوای متنی برای جلوگیری از تداخل */
.hero .hero-text {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.hero .hero-text * {
    pointer-events: auto;
}

/* افکت شفافیت برای محتوای زیر لوگو */
.hero .hero-content {
    position: relative;
    z-index: 1;
}

/* وقتی لوگو حرکت می‌کند، محتوای زیر آن قابل مشاهده باشد */
.hero .hero-image + .hero-text {
    position: relative;
    z-index: 2;
}

/* ============================================
   ریسپانسیو برای موبایل
   ============================================ */
@media (max-width: 768px) {
    .hero .logo-scroll {
        max-width: 60vw;
        max-height: 60vh;
    }
    
    /* کاهش سرعت parallax در موبایل */
    .hero .logo-scroll {
        transition: none !important;
    }
}

@media (max-width: 480px) {
    .hero .logo-scroll {
        max-width: 50vw;
        max-height: 50vh;
    }
}

/* ============================================
   دارک مود
   ============================================ */
[data-theme="dark"] .hero .logo-scroll {
    filter: drop-shadow(0 0 30px rgba(200, 200, 224, 0.05));
}

