/* استایل صفحه حساب کاربری - ویجت پاپ آپ */
.login-popup-account-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* پروفایل کاربر */
.login-popup-account-profile {
    background: linear-gradient(135deg, var(--account-primary-color, #007cba) 0%, var(--account-secondary-color, #005a87) 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 124, 186, 0.3);
    position: relative;
    overflow: hidden;
}

.login-popup-account-profile::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1%, transparent 1%);
    background-size: 10px 10px;
    opacity: 0.3;
}

.profile-avatar {
    position: relative;
    z-index: 2;
}

.profile-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.profile-avatar:hover img {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.profile-info {
    flex: 1;
    position: relative;
    z-index: 2;
}

.profile-info .user-name {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.profile-info .user-email {
    margin: 0 0 5px 0;
    opacity: 0.9;
    font-size: 14px;
}

.profile-info .member-since {
    margin: 0;
    opacity: 0.7;
    font-size: 12px;
}

.profile-actions {
    position: relative;
    z-index: 2;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
    font-weight: 500;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* آمار کاربر */
.login-popup-account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--account-primary-color, #007cba), var(--account-secondary-color, #005a87));
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--account-primary-color, #007cba), var(--account-secondary-color, #005a87));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-content {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: var(--account-primary-color, #007cba);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* سفارشات اخیر */
.login-popup-recent-orders {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

.login-popup-recent-orders h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    font-weight: 600;
}

.recent-orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--account-primary-color, #007cba);
}

.order-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-number {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.order-date {
    font-size: 12px;
    color: #666;
}

.order-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-processing {
    background: #cce7ff;
    color: #004085;
    border: 1px solid #b3d7ff;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-on-hold {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.order-total {
    font-weight: bold;
    color: var(--account-primary-color, #007cba);
    font-size: 14px;
}

.no-orders {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* منوی حساب کاربری */
.login-popup-account-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.account-menu-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.account-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 124, 186, 0.1), transparent);
    transition: left 0.5s ease;
}

.account-menu-item:hover::before {
    left: 100%;
}

.account-menu-item:hover {
    border-color: var(--account-primary-color, #007cba);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 124, 186, 0.2);
    color: var(--account-primary-color, #007cba);
}

.account-menu-item i {
    width: 20px;
    text-align: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.account-menu-item:hover i {
    transform: scale(1.2);
}

.account-menu-item span {
    font-weight: 500;
    font-size: 14px;
}

/* حالت لاگین نبودن */
.login-popup-account-not-logged-in {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px dashed #dee2e6;
}

.login-popup-account-not-logged-in p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-popup-account-profile,
.login-popup-account-stats,
.login-popup-recent-orders,
.login-popup-account-menu {
    animation: fadeInUp 0.6s ease-out;
}

.login-popup-account-stats {
    animation-delay: 0.1s;
}

.login-popup-recent-orders {
    animation-delay: 0.2s;
}

.login-popup-account-menu {
    animation-delay: 0.3s;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .login-popup-account-page {
        padding: 15px;
    }
    
    .login-popup-account-profile {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }
    
    .login-popup-account-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 20px;
    }
    
    .login-popup-account-menu {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .account-menu-item {
        padding: 15px;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-status {
        width: 100%;
        justify-content: space-between;
    }
    
    .login-popup-recent-orders {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .profile-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .profile-info .user-name {
        font-size: 20px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 20px;
    }
}